From 56bc53d97d47f094065e2a8be4dec0c555430bf6 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Mon, 4 Jul 2022 05:14:53 +0200 Subject: [PATCH] fix warnings --- Cargo.toml | 6 ++---- src/matrix.rs | 2 +- src/matrix_repr.rs | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5b05932..9e9bfc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "hexodsp" -version = "0.1.0" +version = "0.2.0" authors = ["Weird Constructor "] license = "AGPL-3.0-or-later" -edition = "2018" +edition = "2021" description = "Comprehensive DSP graph and synthesis library for developing a modular synthesizer in Rust, such as HexoSynth." keywords = ["audio", "music", "real-time", "synthesis", "synthesizer", "dsp", "sound"] categories = ["multimedia::audio", "multimedia", "algorithms", "mathematics"] @@ -17,8 +17,6 @@ serde_json = "1.0" ringbuf = "0.2.2" triple_buffer = "5.0.6" lazy_static = "1.4.0" -#hexotk = { optional = true, git = "https://github.com/WeirdConstructor/HexoTK.git" } -#hexotk = { optional = true, path = "../hexotk" } hound = "3.4.0" num-traits = "0.2.14" diff --git a/src/matrix.rs b/src/matrix.rs index 0b4c49f..64c66c0 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -1617,7 +1617,7 @@ mod tests { fn check_matrix_set_get() { use crate::nodes::new_node_engine; - let (node_conf, mut node_exec) = new_node_engine(); + let (node_conf, _node_exec) = new_node_engine(); let mut matrix = Matrix::new(node_conf, 3, 3); let pa1 = NodeId::Sin(1).param_by_idx(0).unwrap(); diff --git a/src/matrix_repr.rs b/src/matrix_repr.rs index 3952d4c..2f10962 100644 --- a/src/matrix_repr.rs +++ b/src/matrix_repr.rs @@ -745,7 +745,7 @@ mod tests { matrix.from_repr(&mr).unwrap(); let mut v = std::collections::HashMap::new(); - matrix.for_each_atom(|unique_idx, param_id, atom, modamt| { + matrix.for_each_atom(|unique_idx, param_id, atom, _modamt| { v.insert( format!("{}_{}", unique_idx, param_id.name().to_string()), param_id.denorm(atom.f())); @@ -773,7 +773,7 @@ mod tests { matrix.from_repr(&mr).unwrap(); let mut v = std::collections::HashMap::new(); - matrix.for_each_atom(|unique_idx, param_id, atom, modamt| { + matrix.for_each_atom(|unique_idx, param_id, atom, _modamt| { v.insert( format!("{}_{}", unique_idx, param_id.name().to_string()), param_id.denorm(atom.f()));