From 8899a56f65eefaeadb5f3f1aa481cecea916e5a1 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 5 Jun 2024 22:24:52 +0100 Subject: [PATCH] Allow the clippy lint --- tracker/agb-tracker/src/mixer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tracker/agb-tracker/src/mixer.rs b/tracker/agb-tracker/src/mixer.rs index 9054d002..110627e9 100644 --- a/tracker/agb-tracker/src/mixer.rs +++ b/tracker/agb-tracker/src/mixer.rs @@ -1,9 +1,12 @@ #![allow(missing_docs)] use agb_fixnum::Num; +use alloc::borrow::Cow; pub trait SoundChannel { - fn new(data: &alloc::borrow::Cow<'static, [u8]>) -> Self; + // I need a reference to a cow here to support the static data correctly + #[allow(clippy::ptr_arg)] + fn new(data: &Cow<'static, [u8]>) -> Self; fn stop(&mut self); fn pause(&mut self) -> &mut Self;