fixing annoying warnings
This commit is contained in:
parent
3861615d33
commit
b741399cee
6 changed files with 5 additions and 3 deletions
|
@ -171,6 +171,7 @@ pub struct ButterLowpass {
|
||||||
cutoff: f32,
|
cutoff: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
impl ButterLowpass {
|
impl ButterLowpass {
|
||||||
pub fn new(sample_rate: f32, cutoff: f32) -> Self {
|
pub fn new(sample_rate: f32, cutoff: f32) -> Self {
|
||||||
let mut this = ButterLowpass {
|
let mut this = ButterLowpass {
|
||||||
|
|
|
@ -1648,6 +1648,7 @@ macro_rules! make_node_info_enum {
|
||||||
})+
|
})+
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_mut)]
|
||||||
mod ni {
|
mod ni {
|
||||||
$(
|
$(
|
||||||
pub fn $variant(node_id: crate::dsp::NodeId) -> crate::dsp::NodeInfo {
|
pub fn $variant(node_id: crate::dsp::NodeId) -> crate::dsp::NodeInfo {
|
||||||
|
|
|
@ -116,8 +116,6 @@ pub struct BowStri {
|
||||||
bstr: Box<BowedString>,
|
bstr: Box<BowedString>,
|
||||||
}
|
}
|
||||||
|
|
||||||
const TWOPI : f32 = 2.0 * std::f32::consts::PI;
|
|
||||||
|
|
||||||
impl BowStri {
|
impl BowStri {
|
||||||
pub fn new(_nid: &NodeId) -> Self {
|
pub fn new(_nid: &NodeId) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|
|
@ -22,6 +22,7 @@ macro_rules! fa_out_mono { ($formatter: expr, $v: expr, $denorm_v: expr) => { {
|
||||||
pub struct Out {
|
pub struct Out {
|
||||||
/// - 0: signal channel 1
|
/// - 0: signal channel 1
|
||||||
/// - 1: signal channel 2
|
/// - 1: signal channel 2
|
||||||
|
#[allow(dead_code)]
|
||||||
input: [f32; 2],
|
input: [f32; 2],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,7 @@ projects and authors, I can't relicense it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pub mod nodes;
|
pub mod nodes;
|
||||||
#[allow(unused_macros)]
|
#[allow(unused_macros, non_snake_case)]
|
||||||
pub mod dsp;
|
pub mod dsp;
|
||||||
pub mod matrix;
|
pub mod matrix;
|
||||||
pub mod cell_dir;
|
pub mod cell_dir;
|
||||||
|
|
|
@ -34,6 +34,7 @@ use crate::monitor::MON_SIG_CNT;
|
||||||
use crate::dsp::{Node, SAtom};
|
use crate::dsp::{Node, SAtom};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) enum DropMsg {
|
pub(crate) enum DropMsg {
|
||||||
Node { node: Node },
|
Node { node: Node },
|
||||||
Prog { prog: NodeProg },
|
Prog { prog: NodeProg },
|
||||||
|
|
Loading…
Reference in a new issue