mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Allow the clippy lint
This commit is contained in:
parent
72598d0232
commit
8899a56f65
|
@ -1,9 +1,12 @@
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
use agb_fixnum::Num;
|
use agb_fixnum::Num;
|
||||||
|
use alloc::borrow::Cow;
|
||||||
|
|
||||||
pub trait SoundChannel {
|
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 stop(&mut self);
|
||||||
fn pause(&mut self) -> &mut Self;
|
fn pause(&mut self) -> &mut Self;
|
||||||
|
|
Loading…
Reference in a new issue