[INFO] cloning repository https://github.com/benginow/concurrent_graph_bonanza [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benginow/concurrent_graph_bonanza" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenginow%2Fconcurrent_graph_bonanza", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenginow%2Fconcurrent_graph_bonanza'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1186778ed2249711435c9e277a8c38bb9500c02 [INFO] checking benginow/concurrent_graph_bonanza/f1186778ed2249711435c9e277a8c38bb9500c02 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenginow%2Fconcurrent_graph_bonanza" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/benginow/concurrent_graph_bonanza on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/benginow/concurrent_graph_bonanza [INFO] finished tweaking git repo https://github.com/benginow/concurrent_graph_bonanza [INFO] tweaked toml for git repo https://github.com/benginow/concurrent_graph_bonanza written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/benginow/concurrent_graph_bonanza 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fork v0.1.21 [INFO] [stderr] Downloaded disjoint-sets v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6478a1a3228be187c22055e93d155bd1d09976f530b6ae3287c7bf35c33f3ca [INFO] running `Command { std: "docker" "start" "-a" "b6478a1a3228be187c22055e93d155bd1d09976f530b6ae3287c7bf35c33f3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6478a1a3228be187c22055e93d155bd1d09976f530b6ae3287c7bf35c33f3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6478a1a3228be187c22055e93d155bd1d09976f530b6ae3287c7bf35c33f3ca", kill_on_drop: false }` [INFO] [stdout] b6478a1a3228be187c22055e93d155bd1d09976f530b6ae3287c7bf35c33f3ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 724d6d9414adf334f47c36d2ec6f54e1afbae47155bb6412b88d1be70e94fcf4 [INFO] running `Command { std: "docker" "start" "-a" "724d6d9414adf334f47c36d2ec6f54e1afbae47155bb6412b88d1be70e94fcf4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking disjoint-sets v0.4.2 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking fork v0.1.21 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking concurrent_graph_bonanza v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RwLockWriteGuard` [INFO] [stdout] --> src/one.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc,RwLock,RwLockWriteGuard,atomic::{AtomicUsize, Ordering}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLockWriteGuard` [INFO] [stdout] --> src/one.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc,RwLock,RwLockWriteGuard,atomic::{AtomicUsize, Ordering}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/one.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicPtr` [INFO] [stdout] --> src/one.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::atomic::AtomicPtr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::simple::SimpleGraph` [INFO] [stdout] --> src/tests.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::simple::SimpleGraph; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::simple_coarse::CSimpleGraph` [INFO] [stdout] --> src/tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::simple_coarse::CSimpleGraph; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::one::CoarseGraphOne` [INFO] [stdout] --> src/tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::one::CoarseGraphOne; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::csr::CoarseCSRGraph` [INFO] [stdout] --> src/tests.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::csr::CoarseCSRGraph; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::graph::GraphErr` [INFO] [stdout] --> src/tests.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::graph::GraphErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/tests.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/tests.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if (request.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - if (request.is_err()) { [INFO] [stdout] 49 + if request.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/one.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicPtr` [INFO] [stdout] --> src/one.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::atomic::AtomicPtr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::graph::GraphErr` [INFO] [stdout] --> src/tests.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::graph::GraphErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/tests.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/tests.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if (request.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - if (request.is_err()) { [INFO] [stdout] 49 + if request.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 84 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - if (val == 0) { [INFO] [stdout] 84 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 96 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (val == 0) { [INFO] [stdout] 96 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - if (val == 0) { [INFO] [stdout] 108 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/tests.rs:145:11 [INFO] [stdout] | [INFO] [stdout] 145 | while (*nodes + *edges + *removed_edges + *removed_nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 145 - while (*nodes + *edges + *removed_edges + *removed_nodes > 0){ [INFO] [stdout] 145 + while *nodes + *edges + *removed_edges + *removed_nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 151 | if (*nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - if (*nodes > 0){ [INFO] [stdout] 151 + if *nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (res.is_err()){ [INFO] [stdout] 153 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:161:20 [INFO] [stdout] | [INFO] [stdout] 161 | if (*removed_nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (*removed_nodes > 0){ [INFO] [stdout] 161 + if *removed_nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if (res.is_err()){ [INFO] [stdout] 163 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | if (*edges > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - if (*edges > 0){ [INFO] [stdout] 172 + if *edges > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:174:24 [INFO] [stdout] | [INFO] [stdout] 174 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if (res.is_err()){ [INFO] [stdout] 174 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (*removed_edges > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (*removed_edges > 0){ [INFO] [stdout] 183 + if *removed_edges > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:185:24 [INFO] [stdout] | [INFO] [stdout] 185 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - if (res.is_err()){ [INFO] [stdout] 185 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `graph::Graph` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use graph::Graph; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 84 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - if (val == 0) { [INFO] [stdout] 84 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 96 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (val == 0) { [INFO] [stdout] 96 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | if (val == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - if (val == 0) { [INFO] [stdout] 108 + if val == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/tests.rs:145:11 [INFO] [stdout] | [INFO] [stdout] 145 | while (*nodes + *edges + *removed_edges + *removed_nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 145 - while (*nodes + *edges + *removed_edges + *removed_nodes > 0){ [INFO] [stdout] 145 + while *nodes + *edges + *removed_edges + *removed_nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 151 | if (*nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - if (*nodes > 0){ [INFO] [stdout] 151 + if *nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (res.is_err()){ [INFO] [stdout] 153 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:161:20 [INFO] [stdout] | [INFO] [stdout] 161 | if (*removed_nodes > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (*removed_nodes > 0){ [INFO] [stdout] 161 + if *removed_nodes > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if (res.is_err()){ [INFO] [stdout] 163 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | if (*edges > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - if (*edges > 0){ [INFO] [stdout] 172 + if *edges > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:174:24 [INFO] [stdout] | [INFO] [stdout] 174 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if (res.is_err()){ [INFO] [stdout] 174 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (*removed_edges > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (*removed_edges > 0){ [INFO] [stdout] 183 + if *removed_edges > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tests.rs:185:24 [INFO] [stdout] | [INFO] [stdout] 185 | if (res.is_err()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - if (res.is_err()){ [INFO] [stdout] 185 + if res.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `graph::Graph` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use graph::Graph; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let mut read_labels = self.labels.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_map` [INFO] [stdout] --> src/simple.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let read_map = self.map.read().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple.rs:220:37 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple.rs:220:45 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple.rs:250:34 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple.rs:250:44 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/one.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let mut read_labels = self.labels.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_map` [INFO] [stdout] --> src/simple.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let read_map = self.map.read().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple.rs:220:37 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple.rs:220:45 [INFO] [stdout] | [INFO] [stdout] 220 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple.rs:250:34 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple.rs:250:44 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:240:30 [INFO] [stdout] | [INFO] [stdout] 240 | fn get_node_label(&self, id: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:244:30 [INFO] [stdout] | [INFO] [stdout] 244 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/one.rs:244:38 [INFO] [stdout] | [INFO] [stdout] 244 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/one.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/one.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/one.rs:257:37 [INFO] [stdout] | [INFO] [stdout] 257 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:295:27 [INFO] [stdout] | [INFO] [stdout] 295 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/csr.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, e) = self.get_size(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/csr.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let (v, e) = self.get_size(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_node_label(&self, id: usize) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/csr.rs:138:41 [INFO] [stdout] | [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/csr.rs:178:31 [INFO] [stdout] | [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/csr.rs:178:44 [INFO] [stdout] | [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:182:31 [INFO] [stdout] | [INFO] [stdout] 182 | fn remove_node(&mut self, id: usize) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:319:29 [INFO] [stdout] | [INFO] [stdout] 319 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:323:30 [INFO] [stdout] | [INFO] [stdout] 323 | fn get_node_label(&self, id: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:327:30 [INFO] [stdout] | [INFO] [stdout] 327 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/csr.rs:327:38 [INFO] [stdout] | [INFO] [stdout] 327 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/csr.rs:390:27 [INFO] [stdout] | [INFO] [stdout] 390 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:240:30 [INFO] [stdout] | [INFO] [stdout] 240 | fn get_node_label(&self, id: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:244:30 [INFO] [stdout] | [INFO] [stdout] 244 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/one.rs:244:38 [INFO] [stdout] | [INFO] [stdout] 244 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/one.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/one.rs:257:37 [INFO] [stdout] | [INFO] [stdout] 257 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/csr.rs:390:37 [INFO] [stdout] | [INFO] [stdout] 390 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:394:27 [INFO] [stdout] | [INFO] [stdout] 394 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/one.rs:295:27 [INFO] [stdout] | [INFO] [stdout] 295 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/csr.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, e) = self.get_size(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tests.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | for i in 0..num_threads { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tests.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | for i in 0..num_loops{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/csr.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let (v, e) = self.get_size(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple_coarse.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let mut read_labels = self.labels.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:95:24 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/simple_coarse.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_node_label(&self, id: usize) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/csr.rs:138:41 [INFO] [stdout] | [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/csr.rs:178:31 [INFO] [stdout] | [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/csr.rs:178:44 [INFO] [stdout] | [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:182:31 [INFO] [stdout] | [INFO] [stdout] 182 | fn remove_node(&mut self, id: usize) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:319:29 [INFO] [stdout] | [INFO] [stdout] 319 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:323:30 [INFO] [stdout] | [INFO] [stdout] 323 | fn get_node_label(&self, id: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:327:30 [INFO] [stdout] | [INFO] [stdout] 327 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/csr.rs:327:38 [INFO] [stdout] | [INFO] [stdout] 327 | fn set_node_label(&self, id: Id, label: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:142:37 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple_coarse.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:146:44 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple_coarse.rs:146:52 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/csr.rs:390:27 [INFO] [stdout] | [INFO] [stdout] 390 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/simple_coarse.rs:181:27 [INFO] [stdout] | [INFO] [stdout] 181 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_nodes`, `get_edges`, `get_neighbors`, and `debug` are never used [INFO] [stdout] --> src/one.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl CoarseLogList { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn get_edges(&self) -> Vec<(usize, usize, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/csr.rs:390:37 [INFO] [stdout] | [INFO] [stdout] 390 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/csr.rs:394:27 [INFO] [stdout] | [INFO] [stdout] 394 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tests.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | for i in 0..num_threads { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tests.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | for i in 0..num_loops{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/csr.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl CoarseCSR { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_edges(&self) -> Vec<(usize, usize, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn get_node_label(&self, id: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | fn remove_node(&mut self, id: usize) -> Result<(), GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestType` is never used [INFO] [stdout] --> src/tests.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | enum RequestType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `service` is never used [INFO] [stdout] --> src/tests.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn service + Send + Sync>(rx: Receiver, graph: Arc) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request` is never used [INFO] [stdout] --> src/tests.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn generate_request(num: usize, nodes_gen: &AtomicUsize) -> RequestType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_gen` is never used [INFO] [stdout] --> src/tests.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn test_gen + Send + Sync + 'static>(graph: Arc, nodes: &mut usize, edges: &mut usize, removed_nodes: &mut usize, remo... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench` is never used [INFO] [stdout] --> src/tests.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn bench + Send + Sync + 'static>(g: Arc, num_nodes: &mut usize, num_edges: &mut usize, removed_nodes: &mut usize, rem... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/one.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / log.iter().map(|(f,t,w,u)| { [INFO] [stdout] 46 | | if *u { [INFO] [stdout] 47 | | for (t_, w_) in adj[from].iter_mut() { [INFO] [stdout] 48 | | if *t_ == *t { [INFO] [stdout] ... | [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/one.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | ^ ----------- [INFO] [stdout] | | | [INFO] [stdout] | __________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | ________________________| [INFO] [stdout] | | | [INFO] [stdout] 46 | | | if *u { [INFO] [stdout] 47 | | | for (t_, w_) in adj[from].iter_mut() { [INFO] [stdout] 48 | | | if *t_ == *t { [INFO] [stdout] ... | | [INFO] [stdout] 55 | | | } [INFO] [stdout] 56 | | | }); [INFO] [stdout] | | | -^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | | |_____________|| [INFO] [stdout] | |_______________| [INFO] [stdout] | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().for_each(|(f,t,w,u)| { [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | graph.add_node(a); [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] 57 | let _ = graph.add_node(a); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | let mut g: Arc> = Arc::new(CoarseCSRGraph::new()); [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/simple_coarse.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let mut read_labels = self.labels.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:95:24 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/simple_coarse.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | fn get_neighbors(&self, id: Id) -> Result, GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn remove_edge(&self, from: Id, to: Id) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:142:37 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | graph.remove_node(a); [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] 60 | let _ = graph.remove_node(a); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | graph.add_edge(a,b, 1.0); [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] 64 | let _ = graph.add_edge(a,b, 1.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | graph.remove_edge(a, b); [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] 67 | let _ = graph.remove_edge(a, b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | sender_list[i].send(RequestType::Done); [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] 199 | let _ = sender_list[i].send(RequestType::Done); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | handle.join(); [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] 203 | let _ = handle.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple_coarse.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | fn update_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/simple_coarse.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/simple_coarse.rs:146:44 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/simple_coarse.rs:146:52 [INFO] [stdout] | [INFO] [stdout] 146 | fn update_or_add_edge(&self, from: Id, to: Id, weight: f64) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/simple_coarse.rs:181:27 [INFO] [stdout] | [INFO] [stdout] 181 | fn remove_node(&self, id: Id) -> Result<(), GraphErr> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_nodes`, `get_edges`, `get_neighbors`, and `debug` are never used [INFO] [stdout] --> src/one.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl CoarseLogList { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn get_edges(&self) -> Vec<(usize, usize, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/csr.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl CoarseCSR { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_edges(&self) -> Vec<(usize, usize, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn get_neighbors(&self, id: usize) -> Result, GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn get_node_label(&self, id: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn set_node_label(&self, id: usize, label: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn remove_edge(&mut self, from: usize, to: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | fn remove_node(&mut self, id: usize) -> Result<(), GraphErr> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 86 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/one.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / log.iter().map(|(f,t,w,u)| { [INFO] [stdout] 46 | | if *u { [INFO] [stdout] 47 | | for (t_, w_) in adj[from].iter_mut() { [INFO] [stdout] 48 | | if *t_ == *t { [INFO] [stdout] ... | [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/one.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().map(|(f,t,w,u)| { [INFO] [stdout] | ^ ----------- [INFO] [stdout] | | | [INFO] [stdout] | __________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | ________________________| [INFO] [stdout] | | | [INFO] [stdout] 46 | | | if *u { [INFO] [stdout] 47 | | | for (t_, w_) in adj[from].iter_mut() { [INFO] [stdout] 48 | | | if *t_ == *t { [INFO] [stdout] ... | | [INFO] [stdout] 55 | | | } [INFO] [stdout] 56 | | | }); [INFO] [stdout] | | | -^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | | |_____________|| [INFO] [stdout] | |_______________| [INFO] [stdout] | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 45 | log.iter().for_each(|(f,t,w,u)| { [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | graph.add_node(a); [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] 57 | let _ = graph.add_node(a); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | graph.remove_node(a); [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] 60 | let _ = graph.remove_node(a); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | graph.add_edge(a,b, 1.0); [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] 64 | let _ = graph.add_edge(a,b, 1.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | graph.remove_edge(a, b); [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] 67 | let _ = graph.remove_edge(a, b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | sender_list[i].send(RequestType::Done); [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] 199 | let _ = sender_list[i].send(RequestType::Done); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | handle.join(); [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] 203 | let _ = handle.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_graph_one_vary__sparsity` should have a snake case name [INFO] [stdout] --> src/tests.rs:296:4 [INFO] [stdout] | [INFO] [stdout] 296 | fn test_graph_one_vary__sparsity() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_graph_one_vary_sparsity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 80 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.51s [INFO] running `Command { std: "docker" "inspect" "724d6d9414adf334f47c36d2ec6f54e1afbae47155bb6412b88d1be70e94fcf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "724d6d9414adf334f47c36d2ec6f54e1afbae47155bb6412b88d1be70e94fcf4", kill_on_drop: false }` [INFO] [stdout] 724d6d9414adf334f47c36d2ec6f54e1afbae47155bb6412b88d1be70e94fcf4