[INFO] cloning repository https://github.com/dobrakmato/rust-mod-tracker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dobrakmato/rust-mod-tracker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 524533be253804233fc261fafb8ca612ef63ce5d
[INFO] checking dobrakmato/rust-mod-tracker against master#485ec3fbcc12fa14ef6596dabb125ad710499c9e for pr-157710
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dobrakmato/rust-mod-tracker
[INFO] finished tweaking git repo https://github.com/dobrakmato/rust-mod-tracker
[INFO] tweaked toml for git repo https://github.com/dobrakmato/rust-mod-tracker written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dobrakmato/rust-mod-tracker on toolchain 485ec3fbcc12fa14ef6596dabb125ad710499c9e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dobrakmato/rust-mod-tracker already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded syn v0.11.11
[INFO] [stderr]   Downloaded rand_derive v0.5.0
[INFO] [stderr]   Downloaded unicode-xid v0.0.4
[INFO] [stderr]   Downloaded synom v0.11.3
[INFO] [stderr]   Downloaded quote v0.3.15
[INFO] [stderr]   Downloaded coreaudio-sys v0.2.2
[INFO] [stderr]   Downloaded quote v0.4.2
[INFO] [stderr]   Downloaded rand_chacha v0.2.0
[INFO] [stderr]   Downloaded aho-corasick v0.6.10
[INFO] [stderr]   Downloaded x11 v2.18.1
[INFO] [stderr]   Downloaded memchr v1.0.2
[INFO] [stderr]   Downloaded utf8-ranges v1.0.3
[INFO] [stderr]   Downloaded user32-sys v0.2.0
[INFO] [stderr]   Downloaded which v1.0.5
[INFO] [stderr]   Downloaded env_logger v0.4.3
[INFO] [stderr]   Downloaded spin v0.5.0
[INFO] [stderr]   Downloaded proc-macro2 v0.2.3
[INFO] [stderr]   Downloaded clang-sys v0.21.2
[INFO] [stderr]   Downloaded libloading v0.4.3
[INFO] [stderr]   Downloaded device_query v0.1.3
[INFO] [stderr]   Downloaded cpal v0.9.0
[INFO] [stderr]   Downloaded cexpr v0.2.3
[INFO] [stderr]   Downloaded getrandom v0.1.6
[INFO] [stderr]   Downloaded ghakuf v0.5.3
[INFO] [stderr]   Downloaded bindgen v0.32.3
[INFO] [stderr]   Downloaded nom v3.2.1
[INFO] [stderr]   Downloaded regex v0.2.11
[INFO] [stderr]   Downloaded regex-syntax v0.5.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3
[INFO] running `Command { std: "docker" "start" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3" "/opt/rustwide/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3" "/opt/rustwide/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.58
[INFO] [stderr]     Checking spin v0.5.0
[INFO] [stderr]    Compiling unicode-xid v0.0.4
[INFO] [stderr]    Compiling quote v0.3.15
[INFO] [stderr]    Compiling alsa-sys v0.1.2
[INFO] [stderr]    Compiling x11 v2.18.1
[INFO] [stderr]    Compiling rand_chacha v0.2.0
[INFO] [stderr]    Compiling device_query v0.1.3
[INFO] [stderr]     Checking log v0.4.6
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling synom v0.11.3
[INFO] [stderr]     Checking lazy_static v1.3.0
[INFO] [stderr]     Checking ghakuf v0.5.3
[INFO] [stderr]    Compiling syn v0.11.11
[INFO] [stderr]     Checking c2-chacha v0.2.2
[INFO] [stderr]     Checking getrandom v0.1.6
[INFO] [stderr]     Checking atty v0.2.11
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]     Checking rand_core v0.5.0
[INFO] [stderr]     Checking rand v0.7.0
[INFO] [stderr]     Checking cpal v0.9.0
[INFO] [stderr]    Compiling rand_derive v0.5.0
[INFO] [stderr]     Checking mod_tracker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `DeviceQuery`, `DeviceState`, and `Keycode`
[INFO] [stdout]  --> src/main.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use device_query::{Keycode, DeviceState, DeviceQuery};
[INFO] [stdout]   |                    ^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Event` and `note2freq`
[INFO] [stdout]  --> src/main.rs:5:36
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::midi::{load_midi, Kind, note2freq, Player, Event, MidiPlayback};
[INFO] [stdout]   |                                    ^^^^^^^^^          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::borrow::Borrow`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use core::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Osc` and `Shape`
[INFO] [stdout]   --> src/main.rs:11:18
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::osc::{Osc, Shape};
[INFO] [stdout]    |                  ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ffi::OsStr`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::ffi::OsStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Preset` and `Synth`
[INFO] [stdout]   --> src/main.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::synth::{Synth, Preset};
[INFO] [stdout]    |                    ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::filter::Mode`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::filter::Mode;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path`
[INFO] [stdout]  --> src/midi.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:47:18
[INFO] [stdout]    |
[INFO] [stdout] 47 |                 0...7 => GMFamily::Piano,
[INFO] [stdout]    |                  ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |                 8...15 => GMFamily::ChromaticPercussion,
[INFO] [stdout]    |                  ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:49:19
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 16...23 => GMFamily::Organ,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:50:19
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 14...31 => GMFamily::Guitar,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:51:19
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 32...39 => GMFamily::Bass,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:52:19
[INFO] [stdout]    |
[INFO] [stdout] 52 |                 40...47 => GMFamily::Strings,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:53:19
[INFO] [stdout]    |
[INFO] [stdout] 53 |                 48...55 => GMFamily::Ensemble,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:54:19
[INFO] [stdout]    |
[INFO] [stdout] 54 |                 56...63 => GMFamily::Brass,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:55:19
[INFO] [stdout]    |
[INFO] [stdout] 55 |                 64...71 => GMFamily::Reed,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:56:19
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 72...79 => GMFamily::Pipe,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:57:19
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 80...88 => GMFamily::SynthLead,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:58:19
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 88...95 => GMFamily::SynthPad,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 96...103 => GMFamily::SynthEffects,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:60:20
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 104...111 => GMFamily::Ethnic,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:61:20
[INFO] [stdout]    |
[INFO] [stdout] 61 |                 112...119 => GMFamily::Percussive,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:62:20
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 120...127 => GMFamily::SoundEffects,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/midi.rs:192:33
[INFO] [stdout]     |
[INFO] [stdout] 192 |         self.midi.total_time += (delta_time as f64 * self.midi.tick_length);
[INFO] [stdout]     |                                 ^                                         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 192 -         self.midi.total_time += (delta_time as f64 * self.midi.tick_length);
[INFO] [stdout] 192 +         self.midi.total_time += delta_time as f64 * self.midi.tick_length ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Decay` and `Sustain`
[INFO] [stdout]  --> src/synth.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::env::EnvelopeState::{Attack, Sustain, Off, Decay, Release};
[INFO] [stdout]   |                                         ^^^^^^^       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated crate `rand_derive`: this crate is deprecated without replacement
[INFO] [stdout]   --> src/main.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | extern crate rand_derive;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `clamp` has been stable since 1.50.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(clamp)]
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `freq`
[INFO] [stdout]   --> src/osc.rs:37:39
[INFO] [stdout]    |
[INFO] [stdout] 37 |         if self.pitch_mod < 0.0 { let freq = -modulated_freq; }
[INFO] [stdout]    |                                       ^^^^ help: if this is intentional, prefix it with an underscore: `_freq`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `t` is never read
[INFO] [stdout]  --> src/math.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut t = 0;
[INFO] [stdout]   |                 ^ this value is reassigned later and never used
[INFO] [stdout] 8 |     while b != 0 {
[INFO] [stdout] 9 |         t = b;
[INFO] [stdout]   |         ----- `t` is overwritten here before the previous value is read
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple patterns overlap on their endpoints
[INFO] [stdout]   --> src/midi.rs:58:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 80...88 => GMFamily::SynthLead,
[INFO] [stdout]    |                 ------- this range overlaps on `88_u8`...
[INFO] [stdout] 58 |                 88...95 => GMFamily::SynthPad,
[INFO] [stdout]    |                 ^^^^^^^ ... with this range
[INFO] [stdout]    |
[INFO] [stdout]    = note: you likely meant to write mutually exclusive ranges
[INFO] [stdout]    = note: `#[warn(overlapping_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `event_type`
[INFO] [stdout]    --> src/midi.rs:186:34
[INFO] [stdout]     |
[INFO] [stdout] 186 |             MetaEvent::Unknown { event_type } => {} /* silent */
[INFO] [stdout]     |                                  ^^^^^^^^^^ help: try ignoring the field: `event_type: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DeviceQuery`, `DeviceState`, and `Keycode`
[INFO] [stdout]  --> src/main.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use device_query::{Keycode, DeviceState, DeviceQuery};
[INFO] [stdout]   |                    ^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Event` and `note2freq`
[INFO] [stdout]  --> src/main.rs:5:36
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::midi::{load_midi, Kind, note2freq, Player, Event, MidiPlayback};
[INFO] [stdout]   |                                    ^^^^^^^^^          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::borrow::Borrow`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use core::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Osc` and `Shape`
[INFO] [stdout]   --> src/main.rs:11:18
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::osc::{Osc, Shape};
[INFO] [stdout]    |                  ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/midi.rs:196:44
[INFO] [stdout]     |
[INFO] [stdout] 196 |             MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => {
[INFO] [stdout]     |                                            ^^^^^^^^                                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: try ignoring the field
[INFO] [stdout]     |
[INFO] [stdout] 196 -             MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => {
[INFO] [stdout] 196 +             MidiEvent::NoteOff { ch, note, velocity: _ } | MidiEvent::NoteOn { ch, note, velocity: _ @ 0 } => {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:221:40
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                        ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `control`
[INFO] [stdout]    --> src/midi.rs:221:44
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                            ^^^^^^^ help: try ignoring the field: `control: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ffi::OsStr`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::ffi::OsStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/midi.rs:221:53
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                                     ^^^^ help: try ignoring the field: `data: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Preset` and `Synth`
[INFO] [stdout]   --> src/main.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::synth::{Synth, Preset};
[INFO] [stdout]    |                    ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:222:42
[INFO] [stdout]     |
[INFO] [stdout] 222 |             MidiEvent::PitchBendChange { ch, data } => {}
[INFO] [stdout]     |                                          ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::filter::Mode`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::filter::Mode;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/midi.rs:222:46
[INFO] [stdout]     |
[INFO] [stdout] 222 |             MidiEvent::PitchBendChange { ch, data } => {}
[INFO] [stdout]     |                                              ^^^^ help: try ignoring the field: `data: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path`
[INFO] [stdout]  --> src/midi.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:223:42
[INFO] [stdout]     |
[INFO] [stdout] 223 |             MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */
[INFO] [stdout]     |                                          ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pressure`
[INFO] [stdout]    --> src/midi.rs:223:46
[INFO] [stdout]     |
[INFO] [stdout] 223 |             MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */
[INFO] [stdout]     |                                              ^^^^^^^^ help: try ignoring the field: `pressure: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:224:48
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `note`
[INFO] [stdout]    --> src/midi.rs:224:52
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                    ^^^^ help: try ignoring the field: `note: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/midi.rs:224:58
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                          ^^^^^^^^ help: try ignoring the field: `velocity: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:47:18
[INFO] [stdout]    |
[INFO] [stdout] 47 |                 0...7 => GMFamily::Piano,
[INFO] [stdout]    |                  ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |                 8...15 => GMFamily::ChromaticPercussion,
[INFO] [stdout]    |                  ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:49:19
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 16...23 => GMFamily::Organ,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:50:19
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 14...31 => GMFamily::Guitar,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:51:19
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 32...39 => GMFamily::Bass,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:52:19
[INFO] [stdout]    |
[INFO] [stdout] 52 |                 40...47 => GMFamily::Strings,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:53:19
[INFO] [stdout]    |
[INFO] [stdout] 53 |                 48...55 => GMFamily::Ensemble,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:54:19
[INFO] [stdout]    |
[INFO] [stdout] 54 |                 56...63 => GMFamily::Brass,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:55:19
[INFO] [stdout]    |
[INFO] [stdout] 55 |                 64...71 => GMFamily::Reed,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:56:19
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 72...79 => GMFamily::Pipe,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:57:19
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 80...88 => GMFamily::SynthLead,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:58:19
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 88...95 => GMFamily::SynthPad,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 96...103 => GMFamily::SynthEffects,
[INFO] [stdout]    |                   ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:60:20
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 104...111 => GMFamily::Ethnic,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:61:20
[INFO] [stdout]    |
[INFO] [stdout] 61 |                 112...119 => GMFamily::Percussive,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/midi.rs:62:20
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 120...127 => GMFamily::SoundEffects,
[INFO] [stdout]    |                    ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/midi.rs:192:33
[INFO] [stdout]     |
[INFO] [stdout] 192 |         self.midi.total_time += (delta_time as f64 * self.midi.tick_length);
[INFO] [stdout]     |                                 ^                                         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 192 -         self.midi.total_time += (delta_time as f64 * self.midi.tick_length);
[INFO] [stdout] 192 +         self.midi.total_time += delta_time as f64 * self.midi.tick_length ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Decay` and `Sustain`
[INFO] [stdout]  --> src/synth.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::env::EnvelopeState::{Attack, Sustain, Off, Decay, Release};
[INFO] [stdout]   |                                         ^^^^^^^       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/midi.rs:263:21
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 let mut last = x.peek();
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/midi.rs:270:25
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     let mut last = x.peek();
[INFO] [stdout]     |                         ----^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/midi.rs:304:52
[INFO] [stdout]     |
[INFO] [stdout] 304 |             channels: vec![0; 16].into_iter().map(|x| MidiChannel::new(sample_rate)).collect(),
[INFO] [stdout]     |                                                    ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated crate `rand_derive`: this crate is deprecated without replacement
[INFO] [stdout]   --> src/main.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | extern crate rand_derive;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `instrument`
[INFO] [stdout]    --> src/midi.rs:317:51
[INFO] [stdout]     |
[INFO] [stdout] 317 |     pub fn set_instrument(&mut self, ch: Channel, instrument: GMInstrument) {
[INFO] [stdout]     |                                                   ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrument`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `clamp` has been stable since 1.50.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(clamp)]
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/midi.rs:361:20
[INFO] [stdout]     |
[INFO] [stdout] 361 |             .map(|(i, x)| x.next())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/midi.rs:360:26
[INFO] [stdout]     |
[INFO] [stdout] 360 |             .filter(|(i, x)| *i != 9)
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/synth.rs:208:13
[INFO] [stdout]     |
[INFO] [stdout] 208 |         let mut available = self.voices.voices.len();
[INFO] [stdout]     |             ----^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/synth.rs:209:13
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let mut used = self.voices.voices.iter()
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut midi = load_midi(Path::new("tet.mid"));
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut start = Instant::now();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `sample_rate` is never used
[INFO] [stdout]   --> src/osc.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Osc {
[INFO] [stdout]    | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn sample_rate(&mut self, sample_rate: f64) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Sample` is never constructed
[INFO] [stdout]  --> src/sampler.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Sample<'a> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/sampler.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<'a> Sample<'a> {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] 13 |     pub fn new(buffer: &'a [f32], sample_rate: SampleRate, channels: u8) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Sampler` is never constructed
[INFO] [stdout]   --> src/sampler.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct Sampler<'a> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/sampler.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl<'a> Sampler<'a> {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 26 |     pub fn new(sample: &'a Sample) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Fraction` is never constructed
[INFO] [stdout]  --> src/math.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Fraction {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]  --> src/math.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn gcd(mut a: usize, mut b: usize) -> usize {
[INFO] [stdout]   |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `denominator`, `numerator`, and `as_float` are never used
[INFO] [stdout]   --> src/math.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Fraction {
[INFO] [stdout]    | ------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(numerator: usize, denominator: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     fn denominator(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     fn numerator(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn as_float(&self) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `family` and `program_number` are never read
[INFO] [stdout]   --> src/midi.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct GMInstrument {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 38 |     family: GMFamily,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 39 |     program_number: u8,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GMInstrument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `program_number` is never used
[INFO] [stdout]   --> src/midi.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl GMInstrument {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn program_number(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]    --> src/midi.rs:129:5
[INFO] [stdout]     |
[INFO] [stdout] 127 | pub struct Track {
[INFO] [stdout]     |            ----- field in this struct
[INFO] [stdout] 128 |     name: Option<String>,
[INFO] [stdout] 129 |     id: usize,
[INFO] [stdout]     |     ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `preset` is never read
[INFO] [stdout]    --> src/midi.rs:298:5
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub struct MidiPlayback {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 297 |     channels: Vec<MidiChannel>,
[INFO] [stdout] 298 |     preset: Preset,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `random_presets` is never used
[INFO] [stdout]    --> src/midi.rs:365:12
[INFO] [stdout]     |
[INFO] [stdout] 301 | impl MidiPlayback {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 365 |     pub fn random_presets(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:113:29
[INFO] [stdout]     |
[INFO] [stdout] 113 | ...                   f.write(&u32tou8abe(i));
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 113 |                             let _ = f.write(&u32tou8abe(i));
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:115:25
[INFO] [stdout]     |
[INFO] [stdout] 115 |                         f.flush();
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 115 |                         let _ = f.flush();
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `freq`
[INFO] [stdout]   --> src/osc.rs:37:39
[INFO] [stdout]    |
[INFO] [stdout] 37 |         if self.pitch_mod < 0.0 { let freq = -modulated_freq; }
[INFO] [stdout]    |                                       ^^^^ help: if this is intentional, prefix it with an underscore: `_freq`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `t` is never read
[INFO] [stdout]  --> src/math.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut t = 0;
[INFO] [stdout]   |                 ^ this value is reassigned later and never used
[INFO] [stdout] 8 |     while b != 0 {
[INFO] [stdout] 9 |         t = b;
[INFO] [stdout]   |         ----- `t` is overwritten here before the previous value is read
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple patterns overlap on their endpoints
[INFO] [stdout]   --> src/midi.rs:58:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 80...88 => GMFamily::SynthLead,
[INFO] [stdout]    |                 ------- this range overlaps on `88_u8`...
[INFO] [stdout] 58 |                 88...95 => GMFamily::SynthPad,
[INFO] [stdout]    |                 ^^^^^^^ ... with this range
[INFO] [stdout]    |
[INFO] [stdout]    = note: you likely meant to write mutually exclusive ranges
[INFO] [stdout]    = note: `#[warn(overlapping_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `event_type`
[INFO] [stdout]    --> src/midi.rs:186:34
[INFO] [stdout]     |
[INFO] [stdout] 186 |             MetaEvent::Unknown { event_type } => {} /* silent */
[INFO] [stdout]     |                                  ^^^^^^^^^^ help: try ignoring the field: `event_type: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/midi.rs:196:44
[INFO] [stdout]     |
[INFO] [stdout] 196 |             MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => {
[INFO] [stdout]     |                                            ^^^^^^^^                                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: try ignoring the field
[INFO] [stdout]     |
[INFO] [stdout] 196 -             MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => {
[INFO] [stdout] 196 +             MidiEvent::NoteOff { ch, note, velocity: _ } | MidiEvent::NoteOn { ch, note, velocity: _ @ 0 } => {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:221:40
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                        ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `control`
[INFO] [stdout]    --> src/midi.rs:221:44
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                            ^^^^^^^ help: try ignoring the field: `control: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/midi.rs:221:53
[INFO] [stdout]     |
[INFO] [stdout] 221 |             MidiEvent::ControlChange { ch, control, data } => {}
[INFO] [stdout]     |                                                     ^^^^ help: try ignoring the field: `data: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:222:42
[INFO] [stdout]     |
[INFO] [stdout] 222 |             MidiEvent::PitchBendChange { ch, data } => {}
[INFO] [stdout]     |                                          ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/midi.rs:222:46
[INFO] [stdout]     |
[INFO] [stdout] 222 |             MidiEvent::PitchBendChange { ch, data } => {}
[INFO] [stdout]     |                                              ^^^^ help: try ignoring the field: `data: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:223:42
[INFO] [stdout]     |
[INFO] [stdout] 223 |             MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */
[INFO] [stdout]     |                                          ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pressure`
[INFO] [stdout]    --> src/midi.rs:223:46
[INFO] [stdout]     |
[INFO] [stdout] 223 |             MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */
[INFO] [stdout]     |                                              ^^^^^^^^ help: try ignoring the field: `pressure: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ch`
[INFO] [stdout]    --> src/midi.rs:224:48
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                ^^ help: try ignoring the field: `ch: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `note`
[INFO] [stdout]    --> src/midi.rs:224:52
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                    ^^^^ help: try ignoring the field: `note: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/midi.rs:224:58
[INFO] [stdout]     |
[INFO] [stdout] 224 |             MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */
[INFO] [stdout]     |                                                          ^^^^^^^^ help: try ignoring the field: `velocity: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/midi.rs:263:21
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 let mut last = x.peek();
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/midi.rs:270:25
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     let mut last = x.peek();
[INFO] [stdout]     |                         ----^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/midi.rs:304:52
[INFO] [stdout]     |
[INFO] [stdout] 304 |             channels: vec![0; 16].into_iter().map(|x| MidiChannel::new(sample_rate)).collect(),
[INFO] [stdout]     |                                                    ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `instrument`
[INFO] [stdout]    --> src/midi.rs:317:51
[INFO] [stdout]     |
[INFO] [stdout] 317 |     pub fn set_instrument(&mut self, ch: Channel, instrument: GMInstrument) {
[INFO] [stdout]     |                                                   ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrument`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/midi.rs:361:20
[INFO] [stdout]     |
[INFO] [stdout] 361 |             .map(|(i, x)| x.next())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/midi.rs:360:26
[INFO] [stdout]     |
[INFO] [stdout] 360 |             .filter(|(i, x)| *i != 9)
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/synth.rs:208:13
[INFO] [stdout]     |
[INFO] [stdout] 208 |         let mut available = self.voices.voices.len();
[INFO] [stdout]     |             ----^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/synth.rs:209:13
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let mut used = self.voices.voices.iter()
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut midi = load_midi(Path::new("tet.mid"));
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut start = Instant::now();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `sample_rate` is never used
[INFO] [stdout]   --> src/osc.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Osc {
[INFO] [stdout]    | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn sample_rate(&mut self, sample_rate: f64) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Sample` is never constructed
[INFO] [stdout]  --> src/sampler.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Sample<'a> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/sampler.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<'a> Sample<'a> {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] 13 |     pub fn new(buffer: &'a [f32], sample_rate: SampleRate, channels: u8) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Sampler` is never constructed
[INFO] [stdout]   --> src/sampler.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct Sampler<'a> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/sampler.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl<'a> Sampler<'a> {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 26 |     pub fn new(sample: &'a Sample) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_float` is never used
[INFO] [stdout]   --> src/math.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Fraction {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn as_float(&self) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `family` and `program_number` are never read
[INFO] [stdout]   --> src/midi.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct GMInstrument {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 38 |     family: GMFamily,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 39 |     program_number: u8,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GMInstrument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `program_number` is never used
[INFO] [stdout]   --> src/midi.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl GMInstrument {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn program_number(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]    --> src/midi.rs:129:5
[INFO] [stdout]     |
[INFO] [stdout] 127 | pub struct Track {
[INFO] [stdout]     |            ----- field in this struct
[INFO] [stdout] 128 |     name: Option<String>,
[INFO] [stdout] 129 |     id: usize,
[INFO] [stdout]     |     ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `preset` is never read
[INFO] [stdout]    --> src/midi.rs:298:5
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub struct MidiPlayback {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 297 |     channels: Vec<MidiChannel>,
[INFO] [stdout] 298 |     preset: Preset,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `random_presets` is never used
[INFO] [stdout]    --> src/midi.rs:365:12
[INFO] [stdout]     |
[INFO] [stdout] 301 | impl MidiPlayback {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 365 |     pub fn random_presets(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:113:29
[INFO] [stdout]     |
[INFO] [stdout] 113 | ...                   f.write(&u32tou8abe(i));
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 113 |                             let _ = f.write(&u32tou8abe(i));
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:115:25
[INFO] [stdout]     |
[INFO] [stdout] 115 |                         f.flush();
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 115 |                         let _ = f.flush();
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.78s
[INFO] running `Command { std: "docker" "inspect" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3", kill_on_drop: false }`
[INFO] [stdout] 30fb04efadc8125617d2fc45fdd00938595e8cd1a3ebb68616b651ef771c92a3
