fixing annoying warnings

This commit is contained in:
Weird Constructor 2022-07-03 07:18:43 +02:00
parent 3861615d33
commit b741399cee
6 changed files with 5 additions and 3 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -116,8 +116,6 @@ pub struct BowStri {
bstr: Box<BowedString>,
}
const TWOPI : f32 = 2.0 * std::f32::consts::PI;
impl BowStri {
pub fn new(_nid: &NodeId) -> Self {
Self {

View file

@ -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],
}

View file

@ -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;

View file

@ -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 },