[INFO] cloning repository https://github.com/basicss1/hw2_redo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/basicss1/hw2_redo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbasicss1%2Fhw2_redo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbasicss1%2Fhw2_redo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 74760731fb74c6a135c4a3ef7f78cc2858fee05f
[INFO] checking basicss1/hw2_redo against e977a0b5ab976a591981e7263bd67a71a4f79308 for pr-158914
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbasicss1%2Fhw2_redo" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/basicss1/hw2_redo
[INFO] finished tweaking git repo https://github.com/basicss1/hw2_redo
[INFO] tweaked toml for git repo https://github.com/basicss1/hw2_redo written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/basicss1/hw2_redo on toolchain e977a0b5ab976a591981e7263bd67a71a4f79308
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/basicss1/hw2_redo 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" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] checking basicss1/hw2_redo against e977a0b5ab976a591981e7263bd67a71a4f79308 for pr-158914
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbasicss1%2Fhw2_redo" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/basicss1/hw2_redo
[INFO] finished tweaking git repo https://github.com/basicss1/hw2_redo
[INFO] tweaked toml for git repo https://github.com/basicss1/hw2_redo written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/basicss1/hw2_redo on toolchain e977a0b5ab976a591981e7263bd67a71a4f79308
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/basicss1/hw2_redo 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" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rustc-demangle v0.1.15
[INFO] [stderr]   Downloaded snafu-derive v0.3.1
[INFO] [stderr]   Downloaded custom_error v1.6.0
[INFO] [stderr]   Downloaded snafu v0.3.1
[INFO] [stderr]   Downloaded backtrace v0.3.30
[INFO] [stderr]   Downloaded syn v0.15.35
[INFO] [stderr]   Downloaded cc v1.0.37
[INFO] [stderr]   Downloaded backtrace-sys v0.1.28
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64
[INFO] running `Command { std: "docker" "start" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64", 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" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64", 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" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling libc v0.2.58
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling cc v1.0.37
[INFO] [stderr]    Compiling autocfg v0.1.4
[INFO] [stderr]    Compiling syn v0.15.35
[INFO] [stderr]     Checking rustc-demangle v0.1.15
[INFO] [stderr]     Checking cfg-if v0.1.9
[INFO] [stderr]     Checking custom_error v1.6.0
[INFO] [stderr]    Compiling backtrace v0.3.30
[INFO] [stderr]    Compiling backtrace-sys v0.1.28
[INFO] [stderr]    Compiling quote v0.6.12
[INFO] [stderr]    Compiling snafu-derive v0.3.1
[INFO] [stderr]     Checking snafu v0.3.1
[INFO] [stderr]     Checking graph v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `process`
[INFO] [stdout]  --> src/lib.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, process};
[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 import: `File`
[INFO] [stdout]  --> src/lib.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self,File};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/lib.rs:64:11
[INFO] [stdout]    |
[INFO] [stdout] 64 |         if(!self.backward.contains(&word.to_string())){
[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] 64 -         if(!self.backward.contains(&word.to_string())){
[INFO] [stdout] 64 +         if !self.backward.contains(&word.to_string()) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:187:12
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if (*found == 0){
[INFO] [stdout]     |            ^           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -         if (*found == 0){
[INFO] [stdout] 187 +         if *found == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `process`
[INFO] [stdout]  --> src/lib.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, process};
[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 import: `File`
[INFO] [stdout]  --> src/lib.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self,File};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/lib.rs:64:11
[INFO] [stdout]    |
[INFO] [stdout] 64 |         if(!self.backward.contains(&word.to_string())){
[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] 64 -         if(!self.backward.contains(&word.to_string())){
[INFO] [stdout] 64 +         if !self.backward.contains(&word.to_string()) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:187:12
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if (*found == 0){
[INFO] [stdout]     |            ^           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -         if (*found == 0){
[INFO] [stdout] 187 +         if *found == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/lib.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |              ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_start().trim_right();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/lib.rs:128:26
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |                          ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_left().trim_end();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/lib.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |              ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_start().trim_right();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/lib.rs:128:26
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |                          ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_left().trim_end();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `prelude`
[INFO] [stdout]  --> src/lib.rs:5:28
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Write, prelude::*};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/lib.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         for i in 0..length{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:93:92
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn helper(&self, answer: &mut Vec<String>, begin_values: usize, end_values: usize, mut found: &mut i32){
[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: unused import: `prelude`
[INFO] [stdout]  --> src/lib.rs:5:28
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Write, prelude::*};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/lib.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         for i in 0..length{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:121:20
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub fn read_string(mut label_graph: &mut LabelGraph) -> io::Result<()>{
[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/lib.rs:93:92
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn helper(&self, answer: &mut Vec<String>, begin_values: usize, end_values: usize, mut found: &mut i32){
[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/lib.rs:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut ans: &mut Vec<String> = &mut Vec::new();
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/lib.rs:164:13
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let g = match io::stdin().read_line(&mut contents) {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:121:20
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub fn read_string(mut label_graph: &mut LabelGraph) -> io::Result<()>{
[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/lib.rs:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut ans: &mut Vec<String> = &mut Vec::new();
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/lib.rs:164:13
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let g = match io::stdin().read_line(&mut contents) {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let mut ans: &mut Vec<String> = &mut Vec::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/lib.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let mut ans1: &mut Vec<String> = &mut Vec::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/lib.rs:263:13
[INFO] [stdout]     |
[INFO] [stdout] 263 |         let mut found1: &mut i32 = &mut 0;
[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/lib.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |         let mut ans2: &mut Vec<String> = &mut Vec::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/lib.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let mut found2: &mut i32 = &mut 0;
[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/lib.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let mut ans: &mut Vec<String> = &mut Vec::new();
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `intgraph_set_1_for_neighbor` is never used
[INFO] [stdout]    --> src/lib.rs:205:8
[INFO] [stdout]     |
[INFO] [stdout] 205 |     fn intgraph_set_1_for_neighbor(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `label_graph_helper` is never used
[INFO] [stdout]    --> src/lib.rs:240:8
[INFO] [stdout]     |
[INFO] [stdout] 240 |     fn label_graph_helper(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let mut ans1: &mut Vec<String> = &mut Vec::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/lib.rs:263:13
[INFO] [stdout]     |
[INFO] [stdout] 263 |         let mut found1: &mut i32 = &mut 0;
[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/lib.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |         let mut ans2: &mut Vec<String> = &mut Vec::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/lib.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let mut found2: &mut i32 = &mut 0;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `intgraph_set_1_for_neighbor` is never used
[INFO] [stdout]    --> src/lib.rs:205:8
[INFO] [stdout]     |
[INFO] [stdout] 205 |     fn intgraph_set_1_for_neighbor(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `label_graph_helper` is never used
[INFO] [stdout]    --> src/lib.rs:240:8
[INFO] [stdout]     |
[INFO] [stdout] 240 |     fn label_graph_helper(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::trim_right` that must be used
[INFO] [stdout]    --> src/lib.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this returns the trimmed string as a new slice, without modifying the original
[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] 128 |     let _ = contents.trim_left().trim_right();
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::trim_right` that must be used
[INFO] [stdout]    --> src/lib.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this returns the trimmed string as a new slice, without modifying the original
[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] 128 |     let _ = contents.trim_left().trim_right();
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/lib.rs:139:32
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let new_word = a[0].clone();
[INFO] [stdout]     |                                ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/lib.rs:139:32
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let new_word = a[0].clone();
[INFO] [stdout]     |                                ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type
[INFO] [stdout]    --> src/lib.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     let new_word_ = word_.clone();
[INFO] [stdout]     |                                          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type
[INFO] [stdout]    --> src/lib.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     let new_word_ = word_.clone();
[INFO] [stdout]     |                                          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `process`
[INFO] [stdout]  --> src/lib.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, process};
[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 import: `File`
[INFO] [stdout]  --> src/lib.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self,File};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/lib.rs:64:11
[INFO] [stdout]    |
[INFO] [stdout] 64 |         if(!self.backward.contains(&word.to_string())){
[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] 64 -         if(!self.backward.contains(&word.to_string())){
[INFO] [stdout] 64 +         if !self.backward.contains(&word.to_string()) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:187:12
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if (*found == 0){
[INFO] [stdout]     |            ^           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -         if (*found == 0){
[INFO] [stdout] 187 +         if *found == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `process`
[INFO] [stdout]  --> src/lib.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, process};
[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 import: `File`
[INFO] [stdout]  --> src/lib.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self,File};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/lib.rs:64:11
[INFO] [stdout]    |
[INFO] [stdout] 64 |         if(!self.backward.contains(&word.to_string())){
[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] 64 -         if(!self.backward.contains(&word.to_string())){
[INFO] [stdout] 64 +         if !self.backward.contains(&word.to_string()) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:187:12
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if (*found == 0){
[INFO] [stdout]     |            ^           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -         if (*found == 0){
[INFO] [stdout] 187 +         if *found == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/lib.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |              ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_start().trim_right();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/lib.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |              ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_start().trim_right();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/lib.rs:128:26
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |                          ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_left().trim_end();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/lib.rs:128:26
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |                          ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 128 -     contents.trim_left().trim_right();
[INFO] [stdout] 128 +     contents.trim_left().trim_end();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `prelude`
[INFO] [stdout]  --> src/lib.rs:5:28
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Write, prelude::*};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/lib.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         for i in 0..length{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:93:92
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn helper(&self, answer: &mut Vec<String>, begin_values: usize, end_values: usize, mut found: &mut i32){
[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: unused import: `prelude`
[INFO] [stdout]  --> src/lib.rs:5:28
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Write, prelude::*};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:121:20
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub fn read_string(mut label_graph: &mut LabelGraph) -> io::Result<()>{
[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/lib.rs:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut ans: &mut Vec<String> = &mut Vec::new();
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/lib.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         for i in 0..length{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/lib.rs:164:13
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let g = match io::stdin().read_line(&mut contents) {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:93:92
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn helper(&self, answer: &mut Vec<String>, begin_values: usize, end_values: usize, mut found: &mut i32){
[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/lib.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let mut ans: &mut Vec<String> = &mut Vec::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/lib.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:121:20
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub fn read_string(mut label_graph: &mut LabelGraph) -> io::Result<()>{
[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/lib.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let mut ans1: &mut Vec<String> = &mut Vec::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/lib.rs:263:13
[INFO] [stdout]     |
[INFO] [stdout] 263 |         let mut found1: &mut i32 = &mut 0;
[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/lib.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |         let mut ans2: &mut Vec<String> = &mut Vec::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/lib.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let mut found2: &mut i32 = &mut 0;
[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:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let mut label_graph:&mut lib::LabelGraph = &mut lib::LabelGraph::new();
[INFO] [stdout]   |         ----^^^^^^^^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]  --> src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let a = lib::read_string(label_graph)?;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]  --> src/main.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let g = lib::read_input(label_graph)?;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_len` and `get_contents` are never used
[INFO] [stdout]   --> src/lib.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl IntGraph{
[INFO] [stdout]    | ------------- methods in this implementation
[INFO] [stdout] 13 |     pub fn get_len(&self) -> usize{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn get_contents(&self) -> &Vec<Vec<usize>>{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_graph` is never used
[INFO] [stdout]   --> src/lib.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | impl LabelGraph{
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 |     pub fn set_graph(&mut self, intgraph: IntGraph, labelmap: LabelMap){
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `intgraph_set_1_for_neighbor` is never used
[INFO] [stdout]    --> src/lib.rs:205:8
[INFO] [stdout]     |
[INFO] [stdout] 205 |     fn intgraph_set_1_for_neighbor(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `label_graph_helper` is never used
[INFO] [stdout]    --> src/lib.rs:240:8
[INFO] [stdout]     |
[INFO] [stdout] 240 |     fn label_graph_helper(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut ans: &mut Vec<String> = &mut Vec::new();
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/lib.rs:164:13
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let g = match io::stdin().read_line(&mut contents) {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::trim_right` that must be used
[INFO] [stdout]    --> src/lib.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this returns the trimmed string as a new slice, without modifying the original
[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] 128 |     let _ = contents.trim_left().trim_right();
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/lib.rs:139:32
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let new_word = a[0].clone();
[INFO] [stdout]     |                                ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type
[INFO] [stdout]    --> src/lib.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     let new_word_ = word_.clone();
[INFO] [stdout]     |                                          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let mut ans: &mut Vec<String> = &mut Vec::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/lib.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |         let mut found: &mut i32 = &mut 0;
[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/lib.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let mut ans1: &mut Vec<String> = &mut Vec::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/lib.rs:263:13
[INFO] [stdout]     |
[INFO] [stdout] 263 |         let mut found1: &mut i32 = &mut 0;
[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/lib.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |         let mut ans2: &mut Vec<String> = &mut Vec::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/lib.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let mut found2: &mut i32 = &mut 0;
[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:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let mut label_graph:&mut lib::LabelGraph = &mut lib::LabelGraph::new();
[INFO] [stdout]   |         ----^^^^^^^^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]  --> src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let a = lib::read_string(label_graph)?;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]  --> src/main.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let g = lib::read_input(label_graph)?;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_len` and `get_contents` are never used
[INFO] [stdout]   --> src/lib.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl IntGraph{
[INFO] [stdout]    | ------------- methods in this implementation
[INFO] [stdout] 13 |     pub fn get_len(&self) -> usize{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn get_contents(&self) -> &Vec<Vec<usize>>{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `intgraph_set_1_for_neighbor` is never used
[INFO] [stdout]    --> src/lib.rs:205:8
[INFO] [stdout]     |
[INFO] [stdout] 205 |     fn intgraph_set_1_for_neighbor(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `label_graph_helper` is never used
[INFO] [stdout]    --> src/lib.rs:240:8
[INFO] [stdout]     |
[INFO] [stdout] 240 |     fn label_graph_helper(){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::trim_right` that must be used
[INFO] [stdout]    --> src/lib.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 |     contents.trim_left().trim_right();
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this returns the trimmed string as a new slice, without modifying the original
[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] 128 |     let _ = contents.trim_left().trim_right();
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/lib.rs:139:32
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let new_word = a[0].clone();
[INFO] [stdout]     |                                ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type
[INFO] [stdout]    --> src/lib.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     let new_word_ = word_.clone();
[INFO] [stdout]     |                                          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.84s
[INFO] running `Command { std: "docker" "inspect" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64", kill_on_drop: false }`
[INFO] [stdout] 03bf1d8fe32c6e9978fe09c70cea829d0af8a5b443fb79cd98527a96c6e8fd64
