[INFO] cloning repository https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatteo-Gigli%2FSome-random-basic-code-in-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatteo-Gigli%2FSome-random-basic-code-in-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e6d78abbc3f6af8f1e21f7e79f3b5140a2ee83a [INFO] building Matteo-Gigli/Some-random-basic-code-in-Rust against master#461e8078010433ff7de2db2aaae8a3cfb0847215 for pr-94962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatteo-Gigli%2FSome-random-basic-code-in-Rust" "/workspace/builds/worker-79/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-79/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust on toolchain 461e8078010433ff7de2db2aaae8a3cfb0847215 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust [INFO] finished tweaking git repo https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust [INFO] tweaked toml for git repo https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust written to /workspace/builds/worker-79/source/Cargo.toml [INFO] crate git repo https://github.com/Matteo-Gigli/Some-random-basic-code-in-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/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:1ede1414886370302e694df474b9877c02906499f04c196936ce0973d30c5eaa" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10b23e01fa84c0867129be057eec2579cd223031f5dc984cbea11bbeb9228e37 [INFO] running `Command { std: "docker" "start" "-a" "10b23e01fa84c0867129be057eec2579cd223031f5dc984cbea11bbeb9228e37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10b23e01fa84c0867129be057eec2579cd223031f5dc984cbea11bbeb9228e37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10b23e01fa84c0867129be057eec2579cd223031f5dc984cbea11bbeb9228e37", kill_on_drop: false }` [INFO] [stdout] 10b23e01fa84c0867129be057eec2579cd223031f5dc984cbea11bbeb9228e37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/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" "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:1ede1414886370302e694df474b9877c02906499f04c196936ce0973d30c5eaa" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2108fa60de3034fa4d3ac32e8e6a5ef554093282ec09033053055430b67a2125 [INFO] running `Command { std: "docker" "start" "-a" "2108fa60de3034fa4d3ac32e8e6a5ef554093282ec09033053055430b67a2125", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:23:36 [INFO] [stdout] | [INFO] [stdout] 23 | fn rectangle_area(n1:f32, n2:f32)->(f32){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - fn rectangle_area(n1:f32, n2:f32)->(f32){ [INFO] [stdout] 23 + fn rectangle_area(n1:f32, n2:f32)->f32{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | let c1: char = ('💡'); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - let c1: char = ('💡'); [INFO] [stdout] 127 + let c1: char = '💡'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let logo: char = ('📲'); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - let logo: char = ('📲'); [INFO] [stdout] 153 + let logo: char = '📲'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | }else if(convert_second > convert_first){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 252 - }else if(convert_second > convert_first){ [INFO] [stdout] 252 + }else if convert_second > convert_first { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:303:19 [INFO] [stdout] | [INFO] [stdout] 303 | } else if (convert_input_first_choice == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 303 - } else if (convert_input_first_choice == 2) { [INFO] [stdout] 303 + } else if convert_input_first_choice == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 318 | } else if (convert_input_first_choice == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - } else if (convert_input_first_choice == 3) { [INFO] [stdout] 318 + } else if convert_input_first_choice == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:333:19 [INFO] [stdout] | [INFO] [stdout] 333 | } else if (convert_input_first_choice == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 333 - } else if (convert_input_first_choice == 4) { [INFO] [stdout] 333 + } else if convert_input_first_choice == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:366:24 [INFO] [stdout] | [INFO] [stdout] 366 | if (i == 'N' || i == 'n') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 366 - if (i == 'N' || i == 'n') { [INFO] [stdout] 366 + if i == 'N' || i == 'n' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:754:17 [INFO] [stdout] | [INFO] [stdout] 754 | }else if(i == 'n' || i == 'N'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 754 - }else if(i == 'n' || i == 'N'){ [INFO] [stdout] 754 + }else if i == 'n' || i == 'N' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let n1: i8 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n2` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let n2: i16 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n3` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let n3: i32 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n4` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let n4: i64 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n5` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let n5: i128 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f1` [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let f1: f32 = 10.24; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f2` [INFO] [stdout] --> src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let f2: f64 = 10.24; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hundred` [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let hundred = 100; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hundred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_age` [INFO] [stdout] --> src/main.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let set_age: i32 = age.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | let mut convert_first: i32 = first_number.trim().parse().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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut convert_second: i32 = second_number.trim().parse().unwrap(); [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:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | let mut my_second_array:[i32; 6] = [0, 1, 2, 3, 4, 5]; [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:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | let mut third_string = "My name is Matteo Gigli ."; [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:518:9 [INFO] [stdout] | [INFO] [stdout] 518 | let mut newest_string = "Hello Boys and Girls, My name is Matteo Gigli and I'm 30"; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.04s [INFO] running `Command { std: "docker" "inspect" "2108fa60de3034fa4d3ac32e8e6a5ef554093282ec09033053055430b67a2125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2108fa60de3034fa4d3ac32e8e6a5ef554093282ec09033053055430b67a2125", kill_on_drop: false }` [INFO] [stdout] 2108fa60de3034fa4d3ac32e8e6a5ef554093282ec09033053055430b67a2125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-79/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" "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:1ede1414886370302e694df474b9877c02906499f04c196936ce0973d30c5eaa" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc6e3c8ae5018434e813d90979a7410f5fe2a6b78f0ebccd9b51aa652321a10c [INFO] running `Command { std: "docker" "start" "-a" "fc6e3c8ae5018434e813d90979a7410f5fe2a6b78f0ebccd9b51aa652321a10c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:23:36 [INFO] [stdout] | [INFO] [stdout] 23 | fn rectangle_area(n1:f32, n2:f32)->(f32){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - fn rectangle_area(n1:f32, n2:f32)->(f32){ [INFO] [stdout] 23 + fn rectangle_area(n1:f32, n2:f32)->f32{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | let c1: char = ('💡'); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - let c1: char = ('💡'); [INFO] [stdout] 127 + let c1: char = '💡'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let logo: char = ('📲'); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - let logo: char = ('📲'); [INFO] [stdout] 153 + let logo: char = '📲'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | }else if(convert_second > convert_first){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 252 - }else if(convert_second > convert_first){ [INFO] [stdout] 252 + }else if convert_second > convert_first { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:303:19 [INFO] [stdout] | [INFO] [stdout] 303 | } else if (convert_input_first_choice == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 303 - } else if (convert_input_first_choice == 2) { [INFO] [stdout] 303 + } else if convert_input_first_choice == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 318 | } else if (convert_input_first_choice == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - } else if (convert_input_first_choice == 3) { [INFO] [stdout] 318 + } else if convert_input_first_choice == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:333:19 [INFO] [stdout] | [INFO] [stdout] 333 | } else if (convert_input_first_choice == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 333 - } else if (convert_input_first_choice == 4) { [INFO] [stdout] 333 + } else if convert_input_first_choice == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:366:24 [INFO] [stdout] | [INFO] [stdout] 366 | if (i == 'N' || i == 'n') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 366 - if (i == 'N' || i == 'n') { [INFO] [stdout] 366 + if i == 'N' || i == 'n' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:754:17 [INFO] [stdout] | [INFO] [stdout] 754 | }else if(i == 'n' || i == 'N'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 754 - }else if(i == 'n' || i == 'N'){ [INFO] [stdout] 754 + }else if i == 'n' || i == 'N' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let n1: i8 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n2` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let n2: i16 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n3` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let n3: i32 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n4` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let n4: i64 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n5` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let n5: i128 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f1` [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let f1: f32 = 10.24; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f2` [INFO] [stdout] --> src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let f2: f64 = 10.24; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hundred` [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let hundred = 100; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hundred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_age` [INFO] [stdout] --> src/main.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let set_age: i32 = age.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | let mut convert_first: i32 = first_number.trim().parse().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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut convert_second: i32 = second_number.trim().parse().unwrap(); [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:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | let mut my_second_array:[i32; 6] = [0, 1, 2, 3, 4, 5]; [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:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | let mut third_string = "My name is Matteo Gigli ."; [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:518:9 [INFO] [stdout] | [INFO] [stdout] 518 | let mut newest_string = "Hello Boys and Girls, My name is Matteo Gigli and I'm 30"; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.18s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/untitled-28f216fd08484b94) [INFO] running `Command { std: "docker" "inspect" "fc6e3c8ae5018434e813d90979a7410f5fe2a6b78f0ebccd9b51aa652321a10c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc6e3c8ae5018434e813d90979a7410f5fe2a6b78f0ebccd9b51aa652321a10c", kill_on_drop: false }` [INFO] [stdout] fc6e3c8ae5018434e813d90979a7410f5fe2a6b78f0ebccd9b51aa652321a10c