Skip to content

Commit 0b14160

Browse files
committed
fixed nostd issues
1 parent 305ee00 commit 0b14160

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/firewheel-core/src/dsp/delay_line.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use core::num::NonZeroU32;
22

33
use bevy_platform::prelude::Vec;
4+
#[cfg(not(feature = "std"))]
5+
use num_traits::Float;
46

57
#[derive(Debug)]
68
pub struct DelayLine {

crates/firewheel-nodes/src/echo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ use firewheel_core::{
2424
},
2525
param::smoother::{SmoothedParam, SmootherConfig},
2626
};
27+
#[cfg(not(feature = "std"))]
28+
use num_traits::Float;
2729

2830
const DEFAULT_DELAY_SMOOTH_SECONDS: f32 = 0.25;
2931

0 commit comments

Comments
 (0)