[INFO] cloning repository https://github.com/Yixf-Self/MutationScan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yixf-Self/MutationScan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYixf-Self%2FMutationScan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYixf-Self%2FMutationScan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b96f9176772372aeb7efa12aac03d8b24e6f4c7e [INFO] building Yixf-Self/MutationScan against master#222c5724ecc922fe67815f428c19f82c129d9386 for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYixf-Self%2FMutationScan" "/workspace/builds/worker-33/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-33/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yixf-Self/MutationScan on toolchain 222c5724ecc922fe67815f428c19f82c129d9386 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yixf-Self/MutationScan [INFO] finished tweaking git repo https://github.com/Yixf-Self/MutationScan [INFO] tweaked toml for git repo https://github.com/Yixf-Self/MutationScan written to /workspace/builds/worker-33/source/Cargo.toml [INFO] crate git repo https://github.com/Yixf-Self/MutationScan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "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-33/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00413407b23d6dc7786ec0bcd3e2f090f4979091daf0ce2b304f30058dda7955 [INFO] running `Command { std: "docker" "start" "-a" "00413407b23d6dc7786ec0bcd3e2f090f4979091daf0ce2b304f30058dda7955", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00413407b23d6dc7786ec0bcd3e2f090f4979091daf0ce2b304f30058dda7955", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00413407b23d6dc7786ec0bcd3e2f090f4979091daf0ce2b304f30058dda7955", kill_on_drop: false }` [INFO] [stdout] 00413407b23d6dc7786ec0bcd3e2f090f4979091daf0ce2b304f30058dda7955 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd01467e4dd097eb932652013dd512e4b2eb933e3fbe8e6b572f44bec2a3fcd7 [INFO] running `Command { std: "docker" "start" "-a" "bd01467e4dd097eb932652013dd512e4b2eb933e3fbe8e6b572f44bec2a3fcd7", kill_on_drop: false }` [INFO] [stderr] Compiling MutationScan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | match ( cnt % 4) { [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - match ( cnt % 4) { [INFO] [stdout] 52 + match cnt % 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | match (cnt % 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - match (cnt % 2) { [INFO] [stdout] 125 + match cnt % 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | if (it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 402 - if (it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx)) { [INFO] [stdout] 402 + if it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | if(ed_dis <= threshold_value) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 408 - if(ed_dis <= threshold_value) { [INFO] [stdout] 408 + if ed_dis <= threshold_value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:416:11 [INFO] [stdout] | [INFO] [stdout] 416 | if(flag == true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - if(flag == true) { [INFO] [stdout] 416 + if flag == true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:446:23 [INFO] [stdout] | [INFO] [stdout] 446 | if(len1 <= len2) {continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 446 - if(len1 <= len2) {continue;} [INFO] [stdout] 446 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:483:31 [INFO] [stdout] | [INFO] [stdout] 483 | ... if(len1 <= len2) {continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 483 - if(len1 <= len2) {continue;} [INFO] [stdout] 483 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:498:31 [INFO] [stdout] | [INFO] [stdout] 498 | ... if(len1 <= len2){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 498 - if(len1 <= len2){continue;} [INFO] [stdout] 498 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:499:31 [INFO] [stdout] | [INFO] [stdout] 499 | ... if(len3 <= len2){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 499 - if(len3 <= len2){continue;} [INFO] [stdout] 499 + if len3 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:33:59 [INFO] [stdout] | [INFO] [stdout] 33 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:40:59 [INFO] [stdout] | [INFO] [stdout] 40 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:112:59 [INFO] [stdout] | [INFO] [stdout] 112 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index` [INFO] [stdout] --> src/main.rs:447:40 [INFO] [stdout] | [INFO] [stdout] 447 | let (flag, snp_rs, min_edis_index) = search_snp(&it, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index` [INFO] [stdout] --> src/main.rs:485:48 [INFO] [stdout] | [INFO] [stdout] 485 | ... let (flag, snp_rs, min_edis_index) = search_snp(&it, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index1` [INFO] [stdout] --> src/main.rs:500:50 [INFO] [stdout] | [INFO] [stdout] 500 | ... let (flag1, snp_rs1, min_edis_index1) = search_snp(&it1, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index2` [INFO] [stdout] --> src/main.rs:501:50 [INFO] [stdout] | [INFO] [stdout] 501 | ... let (flag2, snp_rs2, min_edis_index2) = search_snp(&it2, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hamming_distance` [INFO] [stdout] --> src/main.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn hamming_distance(s1: &str, s2: &str) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `complement_str` [INFO] [stdout] --> src/main.rs:346:4 [INFO] [stdout] | [INFO] [stdout] 346 | fn complement_str(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `snp_label` [INFO] [stdout] --> src/main.rs:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | snp_label: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `snp_seq` [INFO] [stdout] --> src/main.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | snp_seq: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_header` [INFO] [stdout] --> src/main.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | fastq_header: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_seq` [INFO] [stdout] --> src/main.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 368 | fastq_seq: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_qual` [INFO] [stdout] --> src/main.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | fastq_qual: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MutationScan` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `mutation_scan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.33s [INFO] running `Command { std: "docker" "inspect" "bd01467e4dd097eb932652013dd512e4b2eb933e3fbe8e6b572f44bec2a3fcd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd01467e4dd097eb932652013dd512e4b2eb933e3fbe8e6b572f44bec2a3fcd7", kill_on_drop: false }` [INFO] [stdout] bd01467e4dd097eb932652013dd512e4b2eb933e3fbe8e6b572f44bec2a3fcd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5480944dedb8a7a10c19b8e3c9fa57e1eb7d4472bc8bde947e457c1ed20c32f [INFO] running `Command { std: "docker" "start" "-a" "d5480944dedb8a7a10c19b8e3c9fa57e1eb7d4472bc8bde947e457c1ed20c32f", kill_on_drop: false }` [INFO] [stderr] Compiling MutationScan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | match ( cnt % 4) { [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - match ( cnt % 4) { [INFO] [stdout] 52 + match cnt % 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | match (cnt % 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - match (cnt % 2) { [INFO] [stdout] 125 + match cnt % 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | if (it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 402 - if (it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx)) { [INFO] [stdout] 402 + if it.seq.clone()[min_edis_index..min_edis_index+len2].chars().nth(idx) != snp.seq.clone().chars().nth(idx) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | if(ed_dis <= threshold_value) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 408 - if(ed_dis <= threshold_value) { [INFO] [stdout] 408 + if ed_dis <= threshold_value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:416:11 [INFO] [stdout] | [INFO] [stdout] 416 | if(flag == true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - if(flag == true) { [INFO] [stdout] 416 + if flag == true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:446:23 [INFO] [stdout] | [INFO] [stdout] 446 | if(len1 <= len2) {continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 446 - if(len1 <= len2) {continue;} [INFO] [stdout] 446 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:483:31 [INFO] [stdout] | [INFO] [stdout] 483 | ... if(len1 <= len2) {continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 483 - if(len1 <= len2) {continue;} [INFO] [stdout] 483 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:498:31 [INFO] [stdout] | [INFO] [stdout] 498 | ... if(len1 <= len2){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 498 - if(len1 <= len2){continue;} [INFO] [stdout] 498 + if len1 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:499:31 [INFO] [stdout] | [INFO] [stdout] 499 | ... if(len3 <= len2){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 499 - if(len3 <= len2){continue;} [INFO] [stdout] 499 + if len3 <= len2 {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:33:59 [INFO] [stdout] | [INFO] [stdout] 33 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:40:59 [INFO] [stdout] | [INFO] [stdout] 40 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:112:59 [INFO] [stdout] | [INFO] [stdout] 112 | ... Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index` [INFO] [stdout] --> src/main.rs:447:40 [INFO] [stdout] | [INFO] [stdout] 447 | let (flag, snp_rs, min_edis_index) = search_snp(&it, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index` [INFO] [stdout] --> src/main.rs:485:48 [INFO] [stdout] | [INFO] [stdout] 485 | ... let (flag, snp_rs, min_edis_index) = search_snp(&it, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index1` [INFO] [stdout] --> src/main.rs:500:50 [INFO] [stdout] | [INFO] [stdout] 500 | ... let (flag1, snp_rs1, min_edis_index1) = search_snp(&it1, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_edis_index2` [INFO] [stdout] --> src/main.rs:501:50 [INFO] [stdout] | [INFO] [stdout] 501 | ... let (flag2, snp_rs2, min_edis_index2) = search_snp(&it2, &snp, threshold_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_edis_index2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hamming_distance` [INFO] [stdout] --> src/main.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn hamming_distance(s1: &str, s2: &str) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `complement_str` [INFO] [stdout] --> src/main.rs:346:4 [INFO] [stdout] | [INFO] [stdout] 346 | fn complement_str(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `snp_label` [INFO] [stdout] --> src/main.rs:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | snp_label: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `snp_seq` [INFO] [stdout] --> src/main.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | snp_seq: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_header` [INFO] [stdout] --> src/main.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | fastq_header: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_seq` [INFO] [stdout] --> src/main.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 368 | fastq_seq: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fastq_qual` [INFO] [stdout] --> src/main.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | fastq_qual: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SnpResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MutationScan` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `mutation_scan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.59s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/MutationScan-d587f3c92ac06065) [INFO] running `Command { std: "docker" "inspect" "d5480944dedb8a7a10c19b8e3c9fa57e1eb7d4472bc8bde947e457c1ed20c32f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5480944dedb8a7a10c19b8e3c9fa57e1eb7d4472bc8bde947e457c1ed20c32f", kill_on_drop: false }` [INFO] [stdout] d5480944dedb8a7a10c19b8e3c9fa57e1eb7d4472bc8bde947e457c1ed20c32f