Allow the clippy lint

This commit is contained in:
Gwilym Inzani 2024-06-05 22:24:52 +01:00
parent 72598d0232
commit 8899a56f65

View file

@ -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;