diff --git a/Cargo.lock b/Cargo.lock index 397f9e5..255cf00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -193,12 +193,6 @@ dependencies = [ "libloading 0.7.4", ] -[[package]] -name = "assert_no_alloc" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ca83137a482d61d916ceb1eba52a684f98004f18e0cafea230fe5579c178a3" - [[package]] name = "atomic-waker" version = "1.1.2" @@ -1874,7 +1868,6 @@ dependencies = [ name = "tetsuyu" version = "0.1.0" dependencies = [ - "assert_no_alloc", "bitflags 2.5.0", "bytemuck", "clap", diff --git a/Cargo.toml b/Cargo.toml index ef21b42..cf15a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,6 @@ edition = "2021" [dependencies] winit = { version = "0.29", features = ["serde"] } -assert_no_alloc = "1.1" cpal = "0.15" fundsp = { version = "0.17", default-features = false } clap = { version = "4.5", features = ["derive"] } diff --git a/src/sound/synth.rs b/src/sound/synth.rs index e1e277c..09f4658 100644 --- a/src/sound/synth.rs +++ b/src/sound/synth.rs @@ -1,4 +1,3 @@ -use assert_no_alloc::*; use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; use cpal::{Device, FromSample, SizedSample, StreamConfig}; use fundsp::hacker::*; @@ -220,7 +219,7 @@ impl Synth { c.set_sample_rate(sample_rate); c.allocate(); - let mut next_value = move || assert_no_alloc(|| c.get_stereo()); + let mut next_value = move || c.get_stereo(); let err_fn = |err| eprintln!("an error occurred on stream: {}", err);