fix warnings

This commit is contained in:
Weird Constructor 2022-07-04 05:14:53 +02:00
parent b741399cee
commit 56bc53d97d
3 changed files with 5 additions and 7 deletions

View file

@ -1,9 +1,9 @@
[package] [package]
name = "hexodsp" name = "hexodsp"
version = "0.1.0" version = "0.2.0"
authors = ["Weird Constructor <weirdconstructor@m8geil.de>"] authors = ["Weird Constructor <weirdconstructor@m8geil.de>"]
license = "AGPL-3.0-or-later" 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." 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"] keywords = ["audio", "music", "real-time", "synthesis", "synthesizer", "dsp", "sound"]
categories = ["multimedia::audio", "multimedia", "algorithms", "mathematics"] categories = ["multimedia::audio", "multimedia", "algorithms", "mathematics"]
@ -17,8 +17,6 @@ serde_json = "1.0"
ringbuf = "0.2.2" ringbuf = "0.2.2"
triple_buffer = "5.0.6" triple_buffer = "5.0.6"
lazy_static = "1.4.0" lazy_static = "1.4.0"
#hexotk = { optional = true, git = "https://github.com/WeirdConstructor/HexoTK.git" }
#hexotk = { optional = true, path = "../hexotk" }
hound = "3.4.0" hound = "3.4.0"
num-traits = "0.2.14" num-traits = "0.2.14"

View file

@ -1617,7 +1617,7 @@ mod tests {
fn check_matrix_set_get() { fn check_matrix_set_get() {
use crate::nodes::new_node_engine; 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 mut matrix = Matrix::new(node_conf, 3, 3);
let pa1 = NodeId::Sin(1).param_by_idx(0).unwrap(); let pa1 = NodeId::Sin(1).param_by_idx(0).unwrap();

View file

@ -745,7 +745,7 @@ mod tests {
matrix.from_repr(&mr).unwrap(); matrix.from_repr(&mr).unwrap();
let mut v = std::collections::HashMap::new(); 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( v.insert(
format!("{}_{}", unique_idx, param_id.name().to_string()), format!("{}_{}", unique_idx, param_id.name().to_string()),
param_id.denorm(atom.f())); param_id.denorm(atom.f()));
@ -773,7 +773,7 @@ mod tests {
matrix.from_repr(&mr).unwrap(); matrix.from_repr(&mr).unwrap();
let mut v = std::collections::HashMap::new(); 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( v.insert(
format!("{}_{}", unique_idx, param_id.name().to_string()), format!("{}_{}", unique_idx, param_id.name().to_string()),
param_id.denorm(atom.f())); param_id.denorm(atom.f()));