diff --git a/Cargo.lock b/Cargo.lock index 26bb0a26..bf42ecf5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4249,7 +4249,7 @@ dependencies = [ [[package]] name = "playdate-sound" -version = "0.4.0" +version = "0.4.1" dependencies = [ "playdate-fs", "playdate-graphics", diff --git a/api/sound/Cargo.toml b/api/sound/Cargo.toml index 3a09539d..ff7f8439 100644 --- a/api/sound/Cargo.toml +++ b/api/sound/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "playdate-sound" -version = "0.4.0" +version = "0.4.1" readme = "README.md" description = "High-level sound API built on-top of Playdate API" keywords = ["playdate", "sdk", "api", "gamedev"] diff --git a/api/sound/src/sample.rs b/api/sound/src/sample.rs index 0bbe2a91..6b2f15f7 100644 --- a/api/sound/src/sample.rs +++ b/api/sound/src/sample.rs @@ -188,7 +188,7 @@ impl Sample { /// Sample over borrowed audio data. #[cfg_attr(feature = "bindings-derive-debug", derive(Debug))] -pub struct SampleWithData<'t, Api: api::Api>(Sample, &'t mut [u8]); +pub struct SampleWithData<'t, Api: api::Api>(Sample, #[allow(dead_code)] &'t mut [u8]); impl Deref for SampleWithData<'_, Api> { type Target = Sample;