diff --git a/src/dsp/biquad.rs b/src/dsp/biquad.rs index 55eff8d..f512a88 100644 --- a/src/dsp/biquad.rs +++ b/src/dsp/biquad.rs @@ -171,6 +171,7 @@ pub struct ButterLowpass { cutoff: f32, } +#[allow(dead_code)] impl ButterLowpass { pub fn new(sample_rate: f32, cutoff: f32) -> Self { let mut this = ButterLowpass { diff --git a/src/dsp/mod.rs b/src/dsp/mod.rs index 713d001..ec705dd 100644 --- a/src/dsp/mod.rs +++ b/src/dsp/mod.rs @@ -1648,6 +1648,7 @@ macro_rules! make_node_info_enum { })+ } + #[allow(unused_mut)] mod ni { $( pub fn $variant(node_id: crate::dsp::NodeId) -> crate::dsp::NodeInfo { diff --git a/src/dsp/node_bowstri.rs b/src/dsp/node_bowstri.rs index 61c08b3..ed272b3 100644 --- a/src/dsp/node_bowstri.rs +++ b/src/dsp/node_bowstri.rs @@ -116,8 +116,6 @@ pub struct BowStri { bstr: Box, } -const TWOPI : f32 = 2.0 * std::f32::consts::PI; - impl BowStri { pub fn new(_nid: &NodeId) -> Self { Self { diff --git a/src/dsp/node_out.rs b/src/dsp/node_out.rs index b544e88..46da3ed 100644 --- a/src/dsp/node_out.rs +++ b/src/dsp/node_out.rs @@ -22,6 +22,7 @@ macro_rules! fa_out_mono { ($formatter: expr, $v: expr, $denorm_v: expr) => { { pub struct Out { /// - 0: signal channel 1 /// - 1: signal channel 2 + #[allow(dead_code)] input: [f32; 2], } diff --git a/src/lib.rs b/src/lib.rs index e52dbd1..0b4b1a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -252,7 +252,7 @@ projects and authors, I can't relicense it. */ pub mod nodes; -#[allow(unused_macros)] +#[allow(unused_macros, non_snake_case)] pub mod dsp; pub mod matrix; pub mod cell_dir; diff --git a/src/nodes/mod.rs b/src/nodes/mod.rs index 0c80035..9b67f28 100644 --- a/src/nodes/mod.rs +++ b/src/nodes/mod.rs @@ -34,6 +34,7 @@ use crate::monitor::MON_SIG_CNT; use crate::dsp::{Node, SAtom}; #[derive(Debug)] +#[allow(dead_code)] pub(crate) enum DropMsg { Node { node: Node }, Prog { prog: NodeProg },