[INFO] cloning repository https://github.com/MrMisc/Outbreak_CIC_Encode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrMisc/Outbreak_CIC_Encode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMisc%2FOutbreak_CIC_Encode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMisc%2FOutbreak_CIC_Encode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d27b2fcb794356f43b8e8ddef4536b087e19b3bf [INFO] checking MrMisc/Outbreak_CIC_Encode against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMisc%2FOutbreak_CIC_Encode" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrMisc/Outbreak_CIC_Encode on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MrMisc/Outbreak_CIC_Encode [INFO] finished tweaking git repo https://github.com/MrMisc/Outbreak_CIC_Encode [INFO] tweaked toml for git repo https://github.com/MrMisc/Outbreak_CIC_Encode written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MrMisc/Outbreak_CIC_Encode 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f289af5b7cfad70cdd50351d46df6e7ae7da1734a0c3a300e9ed070ee74cdc5 [INFO] running `Command { std: "docker" "start" "-a" "5f289af5b7cfad70cdd50351d46df6e7ae7da1734a0c3a300e9ed070ee74cdc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f289af5b7cfad70cdd50351d46df6e7ae7da1734a0c3a300e9ed070ee74cdc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f289af5b7cfad70cdd50351d46df6e7ae7da1734a0c3a300e9ed070ee74cdc5", kill_on_drop: false }` [INFO] [stdout] 5f289af5b7cfad70cdd50351d46df6e7ae7da1734a0c3a300e9ed070ee74cdc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81bccb5025fbd32fecd4f0532fba343f666289f865a2150e713ce84c811c43e5 [INFO] running `Command { std: "docker" "start" "-a" "81bccb5025fbd32fecd4f0532fba343f666289f865a2150e713ce84c811c43e5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bytemuck v1.16.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking wide v0.7.25 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking statrs v0.16.1 [INFO] [stderr] Checking Outbreak_CIC_Encode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Standard` [INFO] [stdout] --> src/main.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::distributions::{Distribution, Standard}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StudentsT`, `Triangular`, and `Weibull` [INFO] [stdout] --> src/main.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | use statrs::distribution::{Normal, Poisson, StudentsT, Triangular, Weibull,Gamma}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io` and `process` [INFO] [stdout] --> src/main.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | use std::{fs, io, process}; [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Zone_3D` should have an upper camel case name [INFO] [stdout] --> src/main.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Zone_3D{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Zone3d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Segment_3D` should have an upper camel case name [INFO] [stdout] --> src/main.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Segment_3D{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Segment3d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:410:56 [INFO] [stdout] | [INFO] [stdout] 410 | ... while start_index > 0 && radialise(((internal_index - start_index) as f64/(step_size as f64) * PI), (((internal_index - start_index... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 410 - while start_index > 0 && radialise(((internal_index - start_index) as f64/(step_size as f64) * PI), (((internal_index - start_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] 410 + while start_index > 0 && radialise((internal_index - start_index) as f64/(step_size as f64) * PI, (((internal_index - start_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:414:62 [INFO] [stdout] | [INFO] [stdout] 414 | ... while end_index < step_size && radialise(((end_index -internal_index) as f64/(step_size as f64) * PI), (((end_index -internal_index... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 414 - while end_index < step_size && radialise(((end_index -internal_index) as f64/(step_size as f64) * PI), (((end_index -internal_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] 414 + while end_index < step_size && radialise((end_index -internal_index) as f64/(step_size as f64) * PI, (((end_index -internal_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Standard` [INFO] [stdout] --> src/main.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::distributions::{Distribution, Standard}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `host` should have an upper camel case name [INFO] [stdout] --> src/main.rs:519:12 [INFO] [stdout] | [INFO] [stdout] 519 | pub struct host{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StudentsT`, `Triangular`, and `Weibull` [INFO] [stdout] --> src/main.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | use statrs::distribution::{Normal, Poisson, StudentsT, Triangular, Weibull,Gamma}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1243:20 [INFO] [stdout] | [INFO] [stdout] 1243 | if (x.contaminated){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1243 - if (x.contaminated){ [INFO] [stdout] 1243 + if x.contaminated { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io` and `process` [INFO] [stdout] --> src/main.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | use std::{fs, io, process}; [INFO] [stdout] | ^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1264:57 [INFO] [stdout] | [INFO] [stdout] 1264 | ...ntact_rules:bool = (HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1264 - let hosttohost_contact_rules:bool = (HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0)); [INFO] [stdout] 1264 + let hosttohost_contact_rules:bool = HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Zone_3D` should have an upper camel case name [INFO] [stdout] --> src/main.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Zone_3D{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Zone3d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Segment_3D` should have an upper camel case name [INFO] [stdout] --> src/main.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Segment_3D{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Segment3d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1265:56 [INFO] [stdout] | [INFO] [stdout] 1265 | ...ntact_rules:bool = (HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1265 - let hosttoegg_contact_rules:bool = (HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1))); [INFO] [stdout] 1265 + let hosttoegg_contact_rules:bool = HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:410:56 [INFO] [stdout] | [INFO] [stdout] 410 | ... while start_index > 0 && radialise(((internal_index - start_index) as f64/(step_size as f64) * PI), (((internal_index - start_index... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 410 - while start_index > 0 && radialise(((internal_index - start_index) as f64/(step_size as f64) * PI), (((internal_index - start_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] 410 + while start_index > 0 && radialise((internal_index - start_index) as f64/(step_size as f64) * PI, (((internal_index - start_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:414:62 [INFO] [stdout] | [INFO] [stdout] 414 | ... while end_index < step_size && radialise(((end_index -internal_index) as f64/(step_size as f64) * PI), (((end_index -internal_index... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 414 - while end_index < step_size && radialise(((end_index -internal_index) as f64/(step_size as f64) * PI), (((end_index -internal_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] 414 + while end_index < step_size && radialise((end_index -internal_index) as f64/(step_size as f64) * PI, (((end_index -internal_index) as u64)*self.segments[0].range_x) as f64, MISHAP_RADIUS) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `host` should have an upper camel case name [INFO] [stdout] --> src/main.rs:519:12 [INFO] [stdout] | [INFO] [stdout] 519 | pub struct host{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1243:20 [INFO] [stdout] | [INFO] [stdout] 1243 | if (x.contaminated){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1243 - if (x.contaminated){ [INFO] [stdout] 1243 + if x.contaminated { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1264:57 [INFO] [stdout] | [INFO] [stdout] 1264 | ...ntact_rules:bool = (HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1264 - let hosttohost_contact_rules:bool = (HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0)); [INFO] [stdout] 1264 + let hosttohost_contact_rules:bool = HOSTTOHOST_CONTACT_SPREAD || !HOSTTOHOST_CONTACT_SPREAD && !(inf.motile == 0 && x.motile ==0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1266:59 [INFO] [stdout] | [INFO] [stdout] 1266 | ...act_rules:bool = (HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1266 - let hosttofaeces_contact_rules:bool = (HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2)); [INFO] [stdout] 1266 + let hosttofaeces_contact_rules:bool = HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1265:56 [INFO] [stdout] | [INFO] [stdout] 1265 | ...ntact_rules:bool = (HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1265 - let hosttoegg_contact_rules:bool = (HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1))); [INFO] [stdout] 1265 + let hosttoegg_contact_rules:bool = HOSTTOEGG_CONTACT_SPREAD || (!HOSTTOEGG_CONTACT_SPREAD && !(inf.motile == 0 && x.motile == 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1266:59 [INFO] [stdout] | [INFO] [stdout] 1266 | ...act_rules:bool = (HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1266 - let hosttofaeces_contact_rules:bool = (HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2)); [INFO] [stdout] 1266 + let hosttofaeces_contact_rules:bool = HOSTTOFAECES_CONTACT_SPREAD || !HOSTTOFAECES_CONTACT_SPREAD &&!(inf.motile == 0 && x.motile == 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1267:56 [INFO] [stdout] | [INFO] [stdout] 1267 | ...ontact_rules:bool = (EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1267 - let eggtohost_contact_rules:bool = (EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0)); [INFO] [stdout] 1267 + let eggtohost_contact_rules:bool = EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1267:56 [INFO] [stdout] | [INFO] [stdout] 1267 | ...ontact_rules:bool = (EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1267 - let eggtohost_contact_rules:bool = (EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0)); [INFO] [stdout] 1267 + let eggtohost_contact_rules:bool = EGGTOHOST_CONTACT_SPREAD || !EGGTOHOST_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1268:59 [INFO] [stdout] | [INFO] [stdout] 1268 | ...act_rules:bool = (FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1268 - let faecestohost_contact_rules:bool = (FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0)); [INFO] [stdout] 1268 + let faecestohost_contact_rules:bool = FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1268:59 [INFO] [stdout] | [INFO] [stdout] 1268 | ...act_rules:bool = (FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1268 - let faecestohost_contact_rules:bool = (FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0)); [INFO] [stdout] 1268 + let faecestohost_contact_rules:bool = FAECESTOHOST_CONTACT_SPREAD || !FAECESTOHOST_CONTACT_SPREAD &&!(inf.motile == 2 && x.motile == 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1269:58 [INFO] [stdout] | [INFO] [stdout] 1269 | ...act_rules:bool = (EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1269 - let eggtofaeces_contact_rules:bool = (EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2)); [INFO] [stdout] 1269 + let eggtofaeces_contact_rules:bool = EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1269:58 [INFO] [stdout] | [INFO] [stdout] 1269 | ...act_rules:bool = (EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1269 - let eggtofaeces_contact_rules:bool = (EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2)); [INFO] [stdout] 1269 + let eggtofaeces_contact_rules:bool = EGGTOFAECES_CONTACT_SPREAD || !EGGTOFAECES_CONTACT_SPREAD && !(inf.motile == 1 && x.motile == 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1270:58 [INFO] [stdout] | [INFO] [stdout] 1270 | ...act_rules:bool = (FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1270 - let faecestoegg_contact_rules:bool = (FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1)); [INFO] [stdout] 1270 + let faecestoegg_contact_rules:bool = FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1270:58 [INFO] [stdout] | [INFO] [stdout] 1270 | ...act_rules:bool = (FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1270 - let faecestoegg_contact_rules:bool = (FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1)); [INFO] [stdout] 1270 + let faecestoegg_contact_rules:bool = FAECESTOEGG_CONTACT_SPREAD || !FAECESTOEGG_CONTACT_SPREAD && !(inf.motile == 2 && x.motile == 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1804:26 [INFO] [stdout] | [INFO] [stdout] 1804 | let host_per_probe = ((TOTAL_NO_OF_HOSTS as f64)/line_no as f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1804 - let host_per_probe = ((TOTAL_NO_OF_HOSTS as f64)/line_no as f64); [INFO] [stdout] 1804 + let host_per_probe = (TOTAL_NO_OF_HOSTS as f64)/line_no as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1804:26 [INFO] [stdout] | [INFO] [stdout] 1804 | let host_per_probe = ((TOTAL_NO_OF_HOSTS as f64)/line_no as f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1804 - let host_per_probe = ((TOTAL_NO_OF_HOSTS as f64)/line_no as f64); [INFO] [stdout] 1804 + let host_per_probe = (TOTAL_NO_OF_HOSTS as f64)/line_no as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1805:27 [INFO] [stdout] | [INFO] [stdout] 1805 | let const_per_probe = ((HOST_0 as f64)/line_no as f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1805 - let const_per_probe = ((HOST_0 as f64)/line_no as f64); [INFO] [stdout] 1805 + let const_per_probe = (HOST_0 as f64)/line_no as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:1805:27 [INFO] [stdout] | [INFO] [stdout] 1805 | let const_per_probe = ((HOST_0 as f64)/line_no as f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1805 - let const_per_probe = ((HOST_0 as f64)/line_no as f64); [INFO] [stdout] 1805 + let const_per_probe = (HOST_0 as f64)/line_no as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::SliceRandom` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::SliceRandom` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `thing` is never read [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut thing: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `thing` is never read [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut thing: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `thing` is never read [INFO] [stdout] --> src/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut thing: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `thing` is never read [INFO] [stdout] --> src/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut thing: f64 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [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:142:66 [INFO] [stdout] | [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [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:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [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:142:66 [INFO] [stdout] | [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [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:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | self.segments.iter_mut().for_each(|mut seg| { [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:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | self.segments.iter_mut().for_each(|mut seg| { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter` [INFO] [stdout] --> src/main.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | counter:usize, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter` [INFO] [stdout] --> src/main.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | counter:usize, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector_length` [INFO] [stdout] --> src/main.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let vector_length:usize = vector.len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_infected` [INFO] [stdout] --> src/main.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let no_infected : usize = vector.iter().filter(|&x| { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_infected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_not_infected` [INFO] [stdout] --> src/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let no_not_infected : usize = vector.iter().filter(|&x| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_not_infected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index_spacing` is never read [INFO] [stdout] --> src/main.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | let mut index_spacing:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `angle_spacing` is never read [INFO] [stdout] --> src/main.rs:363:21 [INFO] [stdout] | [INFO] [stdout] 363 | let mut angle_spacing:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `minima` [INFO] [stdout] --> src/main.rs:396:25 [INFO] [stdout] | [INFO] [stdout] 396 | let mut minima:usize = idx - idx%step_size; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_minima` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `maxima` is never read [INFO] [stdout] --> src/main.rs:399:40 [INFO] [stdout] | [INFO] [stdout] 399 | if maxima>vector.len(){maxima = vector.len();} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices_to_infect` [INFO] [stdout] --> src/main.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | let mut indices_to_infect: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices_to_infect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fail` is never read [INFO] [stdout] --> src/main.rs:447:21 [INFO] [stdout] | [INFO] [stdout] 447 | let mut fail:bool = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/main.rs:301:95 [INFO] [stdout] | [INFO] [stdout] 301 | fn eviscerate(&mut self,evs:&mut Vec, vector:&mut Vec<&mut host>,time:usize, set:usize)->Vec{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector_length` [INFO] [stdout] --> src/main.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let vector_length:usize = vector.len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_infected` [INFO] [stdout] --> src/main.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let no_infected : usize = vector.iter().filter(|&x| { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_infected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_not_infected` [INFO] [stdout] --> src/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let no_not_infected : usize = vector.iter().filter(|&x| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_not_infected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index_spacing` is never read [INFO] [stdout] --> src/main.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | let mut index_spacing:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `angle_spacing` is never read [INFO] [stdout] --> src/main.rs:363:21 [INFO] [stdout] | [INFO] [stdout] 363 | let mut angle_spacing:usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `minima` [INFO] [stdout] --> src/main.rs:396:25 [INFO] [stdout] | [INFO] [stdout] 396 | let mut minima:usize = idx - idx%step_size; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_minima` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `maxima` is never read [INFO] [stdout] --> src/main.rs:399:40 [INFO] [stdout] | [INFO] [stdout] 399 | if maxima>vector.len(){maxima = vector.len();} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices_to_infect` [INFO] [stdout] --> src/main.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | let mut indices_to_infect: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices_to_infect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fail` is never read [INFO] [stdout] --> src/main.rs:447:21 [INFO] [stdout] | [INFO] [stdout] 447 | let mut fail:bool = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/main.rs:301:95 [INFO] [stdout] | [INFO] [stdout] 301 | fn eviscerate(&mut self,evs:&mut Vec, vector:&mut Vec<&mut host>,time:usize, set:usize)->Vec{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:58 [INFO] [stdout] | [INFO] [stdout] 380 | vector.iter_mut().enumerate().for_each(|(idx,mut host)| { [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:380:58 [INFO] [stdout] | [INFO] [stdout] 380 | vector.iter_mut().enumerate().for_each(|(idx,mut host)| { [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:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let mut minima:usize = idx - idx%step_size; [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:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let mut chunk_iter = vector.chunks_exact_mut(step_size); [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:436:13 [INFO] [stdout] | [INFO] [stdout] 436 | let mut indices_to_infect: Vec = 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/main.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 484 | let mut eviscerator:&mut Eviscerator = &mut evs[j%step_size]; [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:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let mut minima:usize = idx - idx%step_size; [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:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let mut chunk_iter = vector.chunks_exact_mut(step_size); [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:436:13 [INFO] [stdout] | [INFO] [stdout] 436 | let mut indices_to_infect: Vec = 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/main.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 484 | let mut eviscerator:&mut Eviscerator = &mut evs[j%step_size]; [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:689:37 [INFO] [stdout] | [INFO] [stdout] 689 | vector.iter_mut().for_each(|mut x| { [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:688:16 [INFO] [stdout] | [INFO] [stdout] 688 | fn recover(mut vector:&mut Vec){ [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:689:37 [INFO] [stdout] | [INFO] [stdout] 689 | vector.iter_mut().for_each(|mut x| { [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:688:16 [INFO] [stdout] | [INFO] [stdout] 688 | fn recover(mut vector:&mut Vec){ [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:707:41 [INFO] [stdout] | [INFO] [stdout] 707 | vector.iter_mut().for_each(|mut h|{ [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:720:41 [INFO] [stdout] | [INFO] [stdout] 720 | vector.iter_mut().for_each(|mut h|{ [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:704:13 [INFO] [stdout] | [INFO] [stdout] 704 | fn feed(mut vector:&mut Vec, origin_x:u64,origin_y:u64,origin_z:u64, zone:usize,time:usize){ [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:707:41 [INFO] [stdout] | [INFO] [stdout] 707 | vector.iter_mut().for_each(|mut h|{ [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:720:41 [INFO] [stdout] | [INFO] [stdout] 720 | vector.iter_mut().for_each(|mut h|{ [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:704:13 [INFO] [stdout] | [INFO] [stdout] 704 | fn feed(mut vector:&mut Vec, origin_x:u64,origin_y:u64,origin_z:u64, zone:usize,time:usize){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let mut output:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `std_y` [INFO] [stdout] --> src/main.rs:853:33 [INFO] [stdout] | [INFO] [stdout] 853 | ... let std_y:f64 = ((x.range_y as f64)/SPORADICITY) as f64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_std_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let mut output:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:812:45 [INFO] [stdout] | [INFO] [stdout] 812 | vector.iter_mut().for_each(|mut x| { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `std_y` [INFO] [stdout] --> src/main.rs:853:33 [INFO] [stdout] | [INFO] [stdout] 853 | ... let std_y:f64 = ((x.range_y as f64)/SPORADICITY) as f64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_std_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:801:18 [INFO] [stdout] | [INFO] [stdout] 801 | fn transport(mut vector:&mut Vec,space:&mut Vec, influx: bool){ //Also to change ;size if you change number of zones [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:802:13 [INFO] [stdout] | [INFO] [stdout] 802 | let mut output:Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin_z` [INFO] [stdout] --> src/main.rs:931:13 [INFO] [stdout] | [INFO] [stdout] 931 | let origin_z = self.origin_z.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:812:45 [INFO] [stdout] | [INFO] [stdout] 812 | vector.iter_mut().for_each(|mut x| { [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:801:18 [INFO] [stdout] | [INFO] [stdout] 801 | fn transport(mut vector:&mut Vec,space:&mut Vec, influx: bool){ //Also to change ;size if you change number of zones [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:802:13 [INFO] [stdout] | [INFO] [stdout] 802 | let mut output:Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin_z` [INFO] [stdout] --> src/main.rs:931:13 [INFO] [stdout] | [INFO] [stdout] 931 | let origin_z = self.origin_z.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:958:13 [INFO] [stdout] | [INFO] [stdout] 958 | ... let mut vecc_into: Vec = vector.clone().into_par_iter().filter(|x| x.motile==0 && x.zone>()... [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_x` is never read [INFO] [stdout] --> src/main.rs:1030:21 [INFO] [stdout] | [INFO] [stdout] 1030 | let mut new_x:f64 = self.x.clone() as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_z` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1032:21 [INFO] [stdout] | [INFO] [stdout] 1032 | let mut new_z:f64 = self.z.clone() as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_new_z` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1051:21 [INFO] [stdout] | [INFO] [stdout] 1051 | ... new_z = limits::min(limits::max(self.origin_z as f64,self.z+mult[2]*normal(MEAN_MOVE_Z,STD_MOVE_Z,MAX_MOVE_Z)),self.origin_z as f64... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1053:21 [INFO] [stdout] | [INFO] [stdout] 1053 | new_z = limits::min(self.z+PERCH_HEIGHT, self.origin_z as f64+self.range_z as f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1056:21 [INFO] [stdout] | [INFO] [stdout] 1056 | new_z = self.origin_z as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1074:21 [INFO] [stdout] | [INFO] [stdout] 1074 | ... new_z = limits::min(limits::max(0.0,self.z+mult[2]*normal(MEAN_MOVE_Z,STD_MOVE_Z,MAX_MOVE_Z)),GRIDSIZE[self.zone as usize][2]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1076:21 [INFO] [stdout] | [INFO] [stdout] 1076 | new_z = limits::min(self.z+PERCH_HEIGHT, self.origin_z as f64+self.range_z as f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1079:21 [INFO] [stdout] | [INFO] [stdout] 1079 | new_z = self.origin_z as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:958:13 [INFO] [stdout] | [INFO] [stdout] 958 | ... let mut vecc_into: Vec = vector.clone().into_par_iter().filter(|x| x.motile==0 && x.zone>()... [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_x` is never read [INFO] [stdout] --> src/main.rs:1030:21 [INFO] [stdout] | [INFO] [stdout] 1030 | let mut new_x:f64 = self.x.clone() as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_z` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1032:21 [INFO] [stdout] | [INFO] [stdout] 1032 | let mut new_z:f64 = self.z.clone() as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_new_z` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1051:21 [INFO] [stdout] | [INFO] [stdout] 1051 | ... new_z = limits::min(limits::max(self.origin_z as f64,self.z+mult[2]*normal(MEAN_MOVE_Z,STD_MOVE_Z,MAX_MOVE_Z)),self.origin_z as f64... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1053:21 [INFO] [stdout] | [INFO] [stdout] 1053 | new_z = limits::min(self.z+PERCH_HEIGHT, self.origin_z as f64+self.range_z as f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1056:21 [INFO] [stdout] | [INFO] [stdout] 1056 | new_z = self.origin_z as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1074:21 [INFO] [stdout] | [INFO] [stdout] 1074 | ... new_z = limits::min(limits::max(0.0,self.z+mult[2]*normal(MEAN_MOVE_Z,STD_MOVE_Z,MAX_MOVE_Z)),GRIDSIZE[self.zone as usize][2]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1076:21 [INFO] [stdout] | [INFO] [stdout] 1076 | new_z = limits::min(self.z+PERCH_HEIGHT, self.origin_z as f64+self.range_z as f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_z` is never read [INFO] [stdout] --> src/main.rs:1079:21 [INFO] [stdout] | [INFO] [stdout] 1079 | new_z = self.origin_z as f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1171:26 [INFO] [stdout] | [INFO] [stdout] 1171 | .filter_map(|mut x| { [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:1171:26 [INFO] [stdout] | [INFO] [stdout] 1171 | .filter_map(|mut x| { [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:1242:26 [INFO] [stdout] | [INFO] [stdout] 1242 | .filter_map(|mut x| { [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:1242:26 [INFO] [stdout] | [INFO] [stdout] 1242 | .filter_map(|mut x| { [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:1325:64 [INFO] [stdout] | [INFO] [stdout] 1325 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1325:64 [INFO] [stdout] | [INFO] [stdout] 1325 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1343:64 [INFO] [stdout] | [INFO] [stdout] 1343 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1343:64 [INFO] [stdout] | [INFO] [stdout] 1343 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1366:64 [INFO] [stdout] | [INFO] [stdout] 1366 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1366:64 [INFO] [stdout] | [INFO] [stdout] 1366 | let vec1:Vec = inventory.into_iter().filter_map(|mut x| { [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:1412:13 [INFO] [stdout] | [INFO] [stdout] 1412 | let mut inventory:Vec = inventory.clone().into_iter().filter(|x|{ [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:1412:13 [INFO] [stdout] | [INFO] [stdout] 1412 | let mut inventory:Vec = inventory.clone().into_iter().filter(|x|{ [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:1451:44 [INFO] [stdout] | [INFO] [stdout] 1451 | zone.segments.iter_mut().for_each(|mut x| { [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:1451:44 [INFO] [stdout] | [INFO] [stdout] 1451 | zone.segments.iter_mut().for_each(|mut x| { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collect` is never read [INFO] [stdout] --> src/main.rs:1603:17 [INFO] [stdout] | [INFO] [stdout] 1603 | let mut collect: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collection_zone_no` [INFO] [stdout] --> src/main.rs:1698:13 [INFO] [stdout] | [INFO] [stdout] 1698 | let collection_zone_no:u8 = no_of_zones as u8+1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collection_zone_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collect` is never read [INFO] [stdout] --> src/main.rs:1603:17 [INFO] [stdout] | [INFO] [stdout] 1603 | let mut collect: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collection_zone_no` [INFO] [stdout] --> src/main.rs:1698:13 [INFO] [stdout] | [INFO] [stdout] 1698 | let collection_zone_no:u8 = no_of_zones as u8+1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collection_zone_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1620:43 [INFO] [stdout] | [INFO] [stdout] 1620 | eviscerators.iter_mut().for_each(|mut ev|{ [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:1620:43 [INFO] [stdout] | [INFO] [stdout] 1620 | eviscerators.iter_mut().for_each(|mut ev|{ [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:1594:9 [INFO] [stdout] | [INFO] [stdout] 1594 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eviscerate` is never read [INFO] [stdout] --> src/main.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Zone_3D{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 124 | eviscerate:bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Zone_3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1594:9 [INFO] [stdout] | [INFO] [stdout] 1594 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eviscerated` is never read [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Segment_3D{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 137 | eviscerated:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Segment_3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate` is never used [INFO] [stdout] --> src/main.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 141 | impl Segment_3D{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_full` and `modify` are never used [INFO] [stdout] --> src/main.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 166 | impl Zone_3D{ [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 219 | fn generate_full(zone:usize,grid:[u64;3],step:[usize;3])->Zone_3D{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn modify(&mut self, start:[u64;3], end:[u64;3], range:[usize;3]){//range is synonymous with the stepsize in side STEP -> we are modi... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIME_TO_COLONIZE` is never used [INFO] [stdout] --> src/main.rs:563:7 [INFO] [stdout] | [INFO] [stdout] 563 | const TIME_TO_COLONIZE:[f64;2] = [5.0*24.0, 11.6*24.0]; //95% CI for generation time [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLONIZE_TIME_MAX_OVERRIDE` is never used [INFO] [stdout] --> src/main.rs:564:7 [INFO] [stdout] | [INFO] [stdout] 564 | const COLONIZE_TIME_MAX_OVERRIDE:f64 = 26.0*24.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NO` is never used [INFO] [stdout] --> src/main.rs:645:7 [INFO] [stdout] | [INFO] [stdout] 645 | const LINE_NO: usize = 3; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_OF_LINES` is never used [INFO] [stdout] --> src/main.rs:646:7 [INFO] [stdout] | [INFO] [stdout] 646 | const NO_OF_LINES:[usize;1] = [LINE_NO;1]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `infect`, `contaminate_multiple`, `collect`, `collect_and_replace`, `report`, and `zone_report` are never used [INFO] [stdout] --> src/main.rs:758:8 [INFO] [stdout] | [INFO] [stdout] 687 | impl host{ [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 758 | fn infect(mut vector:Vec,loc_x:u64,loc_y:u64,loc_z:u64,zone:usize)->Vec{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 785 | fn contaminate_multiple(mut vector:Vec,loc_x:u64,loc_y:u64,loc_z:u64,n:usize,zone:usize)->Vec{ //homogeneous application ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1323 | fn collect(inventory:Vec)->[Vec;2]{ //hosts and deposits potentially get collected [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1364 | fn collect_and_replace(inventory:Vec,zone:&mut Zone_3D)->[Vec;2]{ //same as collect but HOSTS GET REPLACED (with a Pois... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1393 | fn report(inventory:&Vec)->[f64;4]{ //simple function to quickly return the percentage of infected hosts [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1410 | fn zone_report(inventory:&Vec,zone:usize)->[f64;8]{ //simple function to quickly return the percentage of infected hosts [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ages` should have an upper case name [INFO] [stdout] --> src/main.rs:662:7 [INFO] [stdout] | [INFO] [stdout] 662 | const ages:[f64;2] = [0.01,1.0]; //Time hosts are expected spend in each region minimally [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `AGES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eviscerate` is never read [INFO] [stdout] --> src/main.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Zone_3D{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 124 | eviscerate:bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Zone_3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eviscerated` is never read [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Segment_3D{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 137 | eviscerated:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Segment_3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate` is never used [INFO] [stdout] --> src/main.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 141 | impl Segment_3D{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 142 | fn generate(&mut self,infected:bool,colonized:bool,mut n:u32,mut hosts:&mut Vec){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_full` and `modify` are never used [INFO] [stdout] --> src/main.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 166 | impl Zone_3D{ [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 219 | fn generate_full(zone:usize,grid:[u64;3],step:[usize;3])->Zone_3D{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn modify(&mut self, start:[u64;3], end:[u64;3], range:[usize;3]){//range is synonymous with the stepsize in side STEP -> we are modi... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIME_TO_COLONIZE` is never used [INFO] [stdout] --> src/main.rs:563:7 [INFO] [stdout] | [INFO] [stdout] 563 | const TIME_TO_COLONIZE:[f64;2] = [5.0*24.0, 11.6*24.0]; //95% CI for generation time [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLONIZE_TIME_MAX_OVERRIDE` is never used [INFO] [stdout] --> src/main.rs:564:7 [INFO] [stdout] | [INFO] [stdout] 564 | const COLONIZE_TIME_MAX_OVERRIDE:f64 = 26.0*24.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NO` is never used [INFO] [stdout] --> src/main.rs:645:7 [INFO] [stdout] | [INFO] [stdout] 645 | const LINE_NO: usize = 3; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_OF_LINES` is never used [INFO] [stdout] --> src/main.rs:646:7 [INFO] [stdout] | [INFO] [stdout] 646 | const NO_OF_LINES:[usize;1] = [LINE_NO;1]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `infect`, `contaminate_multiple`, `collect`, `collect_and_replace`, `report`, and `zone_report` are never used [INFO] [stdout] --> src/main.rs:758:8 [INFO] [stdout] | [INFO] [stdout] 687 | impl host{ [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 758 | fn infect(mut vector:Vec,loc_x:u64,loc_y:u64,loc_z:u64,zone:usize)->Vec{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 785 | fn contaminate_multiple(mut vector:Vec,loc_x:u64,loc_y:u64,loc_z:u64,n:usize,zone:usize)->Vec{ //homogeneous application ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1323 | fn collect(inventory:Vec)->[Vec;2]{ //hosts and deposits potentially get collected [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1364 | fn collect_and_replace(inventory:Vec,zone:&mut Zone_3D)->[Vec;2]{ //same as collect but HOSTS GET REPLACED (with a Pois... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1393 | fn report(inventory:&Vec)->[f64;4]{ //simple function to quickly return the percentage of infected hosts [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1410 | fn zone_report(inventory:&Vec,zone:usize)->[f64;8]{ //simple function to quickly return the percentage of infected hosts [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ages` should have an upper case name [INFO] [stdout] --> src/main.rs:662:7 [INFO] [stdout] | [INFO] [stdout] 662 | const ages:[f64;2] = [0.01,1.0]; //Time hosts are expected spend in each region minimally [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `AGES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1591:9 [INFO] [stdout] | [INFO] [stdout] 1591 | fs::File::create(filestring.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1591 | let _ = fs::File::create(filestring.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FinalZone` should have a snake case name [INFO] [stdout] --> src/main.rs:1648:17 [INFO] [stdout] | [INFO] [stdout] 1648 | let mut FinalZone:&mut Zone_3D = &mut zones[GRIDSIZE.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `final_zone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1591:9 [INFO] [stdout] | [INFO] [stdout] 1591 | fs::File::create(filestring.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1591 | let _ = fs::File::create(filestring.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FinalZone` should have a snake case name [INFO] [stdout] --> src/main.rs:1648:17 [INFO] [stdout] | [INFO] [stdout] 1648 | let mut FinalZone:&mut Zone_3D = &mut zones[GRIDSIZE.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `final_zone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 84 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 84 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.66s [INFO] running `Command { std: "docker" "inspect" "81bccb5025fbd32fecd4f0532fba343f666289f865a2150e713ce84c811c43e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81bccb5025fbd32fecd4f0532fba343f666289f865a2150e713ce84c811c43e5", kill_on_drop: false }` [INFO] [stdout] 81bccb5025fbd32fecd4f0532fba343f666289f865a2150e713ce84c811c43e5