[INFO] cloning repository https://github.com/LaurinBrechter/personalized-pricing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LaurinBrechter/personalized-pricing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurinBrechter%2Fpersonalized-pricing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurinBrechter%2Fpersonalized-pricing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d167cf4f0b72d8098daea5b21dc7753da3e7200 [INFO] checking LaurinBrechter/personalized-pricing against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurinBrechter%2Fpersonalized-pricing" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LaurinBrechter/personalized-pricing [INFO] finished tweaking git repo https://github.com/LaurinBrechter/personalized-pricing [INFO] tweaked toml for git repo https://github.com/LaurinBrechter/personalized-pricing written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LaurinBrechter/personalized-pricing on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LaurinBrechter/personalized-pricing 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" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking LaurinBrechter/personalized-pricing against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurinBrechter%2Fpersonalized-pricing" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LaurinBrechter/personalized-pricing [INFO] finished tweaking git repo https://github.com/LaurinBrechter/personalized-pricing [INFO] tweaked toml for git repo https://github.com/LaurinBrechter/personalized-pricing written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LaurinBrechter/personalized-pricing on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LaurinBrechter/personalized-pricing 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" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded priority-queue v2.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eccab20783d85b5b2ba76347ac3a1b02245a9c64fc564b7cf90c950d33e24b3c [INFO] running `Command { std: "docker" "start" "-a" "eccab20783d85b5b2ba76347ac3a1b02245a9c64fc564b7cf90c950d33e24b3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eccab20783d85b5b2ba76347ac3a1b02245a9c64fc564b7cf90c950d33e24b3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eccab20783d85b5b2ba76347ac3a1b02245a9c64fc564b7cf90c950d33e24b3c", kill_on_drop: false }` [INFO] [stdout] eccab20783d85b5b2ba76347ac3a1b02245a9c64fc564b7cf90c950d33e24b3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 037726e39643a3ce0eb6246b2b5e6246547b12221a2f907224aea7e2f1d9832e [INFO] running `Command { std: "docker" "start" "-a" "037726e39643a3ce0eb6246b2b5e6246547b12221a2f907224aea7e2f1d9832e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking priority-queue v2.1.1 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking personalized-pricing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::os::fd::IntoRawFd` [INFO] [stdout] --> src/evolution.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::fd::IntoRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationEvent` [INFO] [stdout] --> src/evolution.rs:6:60 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::simulation::{simulate_revenue, ProblemSettings, SimulationEvent, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/evolution.rs:211:20 [INFO] [stdout] | [INFO] [stdout] 211 | if (w_idx == 0 && t_idx < 10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - if (w_idx == 0 && t_idx < 10) { [INFO] [stdout] 211 + if w_idx == 0 && t_idx < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationEvent` [INFO] [stdout] --> src/particle_swarm.rs:2:60 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::simulation::{simulate_revenue, ProblemSettings, SimulationEvent, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `custom` and `evolution::ESSettings` [INFO] [stdout] --> src/simulation.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{custom, evolution::ESSettings, network_formation::create_network}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/simulation.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | if (event.0.event == "wom") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 326 - if (event.0.event == "wom") { [INFO] [stdout] 326 + if event.0.event == "wom" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/custom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/custom.rs:106:31 [INFO] [stdout] | [INFO] [stdout] 106 | log_event_history((scenario_id as i32 + run_id), best, &settings); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - log_event_history((scenario_id as i32 + run_id), best, &settings); [INFO] [stdout] 106 + log_event_history(scenario_id as i32 + run_id, best, &settings); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::fd::IntoRawFd` [INFO] [stdout] --> src/evolution.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::fd::IntoRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationEvent` [INFO] [stdout] --> src/evolution.rs:6:60 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::simulation::{simulate_revenue, ProblemSettings, SimulationEvent, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/evolution.rs:211:20 [INFO] [stdout] | [INFO] [stdout] 211 | if (w_idx == 0 && t_idx < 10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - if (w_idx == 0 && t_idx < 10) { [INFO] [stdout] 211 + if w_idx == 0 && t_idx < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationEvent` [INFO] [stdout] --> src/particle_swarm.rs:2:60 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::simulation::{simulate_revenue, ProblemSettings, SimulationEvent, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `custom` and `evolution::ESSettings` [INFO] [stdout] --> src/simulation.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{custom, evolution::ESSettings, network_formation::create_network}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/simulation.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | if (event.0.event == "wom") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 326 - if (event.0.event == "wom") { [INFO] [stdout] 326 + if event.0.event == "wom" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/custom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/custom.rs:106:31 [INFO] [stdout] | [INFO] [stdout] 106 | log_event_history((scenario_id as i32 + run_id), best, &settings); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - log_event_history((scenario_id as i32 + run_id), best, &settings); [INFO] [stdout] 106 + log_event_history(scenario_id as i32 + run_id, best, &settings); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/evolution.rs:133:46 [INFO] [stdout] | [INFO] [stdout] 133 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/evolution.rs:227:25 [INFO] [stdout] | [INFO] [stdout] 227 | let normal = Normal::new(0.0, 1.0).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/evolution.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | settings: &ESSettings, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/evolution.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_evals` [INFO] [stdout] --> src/evolution.rs:262:89 [INFO] [stdout] | [INFO] [stdout] 262 | fn simulate_and_average<'a>(individual: &Individual<'a>, settings: &'a ProblemSettings, n_evals:i32) -> (f64, SimulationResult<'a>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_evals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/evolution.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | let mut rng = rand::thread_rng(); [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 `avg_score` is assigned to, but never used [INFO] [stdout] --> src/evolution.rs:419:17 [INFO] [stdout] | [INFO] [stdout] 419 | let mut avg_score = 0.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_avg_score` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/evolution.rs:133:46 [INFO] [stdout] | [INFO] [stdout] 133 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/evolution.rs:227:25 [INFO] [stdout] | [INFO] [stdout] 227 | let normal = Normal::new(0.0, 1.0).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/evolution.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | settings: &ESSettings, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/evolution.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_evals` [INFO] [stdout] --> src/evolution.rs:262:89 [INFO] [stdout] | [INFO] [stdout] 262 | fn simulate_and_average<'a>(individual: &Individual<'a>, settings: &'a ProblemSettings, n_evals:i32) -> (f64, SimulationResult<'a>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_evals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/evolution.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | let mut rng = rand::thread_rng(); [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 `avg_score` is assigned to, but never used [INFO] [stdout] --> src/evolution.rs:419:17 [INFO] [stdout] | [INFO] [stdout] 419 | let mut avg_score = 0.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_avg_score` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/mab.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(id: usize, price: i32) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/mab.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/mab.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(id: usize, price: i32) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/particle_swarm.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_evals` [INFO] [stdout] --> src/particle_swarm.rs:131:91 [INFO] [stdout] | [INFO] [stdout] 131 | fn simulate_and_average<'a>(algorithm: &mut dyn Algorithm, settings: &'a ProblemSettings, n_evals:i32) -> (f64, SimulationResult<'a>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_evals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/particle_swarm.rs:150:46 [INFO] [stdout] | [INFO] [stdout] 150 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_inertia` [INFO] [stdout] --> src/particle_swarm.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | current_inertia: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_inertia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/mab.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/particle_swarm.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_evals` [INFO] [stdout] --> src/particle_swarm.rs:131:91 [INFO] [stdout] | [INFO] [stdout] 131 | fn simulate_and_average<'a>(algorithm: &mut dyn Algorithm, settings: &'a ProblemSettings, n_evals:i32) -> (f64, SimulationResult<'a>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_evals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visit` [INFO] [stdout] --> src/particle_swarm.rs:150:46 [INFO] [stdout] | [INFO] [stdout] 150 | fn get_price(&mut self, group_id: usize, visit: usize, period: usize) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_inertia` [INFO] [stdout] --> src/particle_swarm.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | current_inertia: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_inertia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_dist` [INFO] [stdout] --> src/simulation.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let beta_dist = Beta::new(3.0, 6.0).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `avg_wtp_increase` is assigned to, but never used [INFO] [stdout] --> src/simulation.rs:280:13 [INFO] [stdout] | [INFO] [stdout] 280 | let mut avg_wtp_increase = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_avg_wtp_increase` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/custom.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_dist` [INFO] [stdout] --> src/simulation.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let beta_dist = Beta::new(3.0, 6.0).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `avg_wtp_increase` is assigned to, but never used [INFO] [stdout] --> src/simulation.rs:280:13 [INFO] [stdout] | [INFO] [stdout] 280 | let mut avg_wtp_increase = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_avg_wtp_increase` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut rng = rand::thread_rng(); [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/custom.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ind = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/custom.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | for i in 0..n_runs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_solution_selective` is never used [INFO] [stdout] --> src/evolution.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn mutate_solution_selective<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dominant_recombination` is never used [INFO] [stdout] --> src/evolution.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn dominant_recombination<'a>(individuals: Vec>, ind_id: i32) -> Individual<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price` is never read [INFO] [stdout] --> src/mab.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Arm { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 27 | price: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Arm` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_arms` is never read [INFO] [stdout] --> src/mab.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct MAB<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 43 | num_arms: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/custom.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut rng = rand::thread_rng(); [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/custom.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ind = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/custom.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | for i in 0..n_runs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_solution_selective` is never used [INFO] [stdout] --> src/evolution.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn mutate_solution_selective<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dominant_recombination` is never used [INFO] [stdout] --> src/evolution.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn dominant_recombination<'a>(individuals: Vec>, ind_id: i32) -> Individual<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price` is never read [INFO] [stdout] --> src/mab.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Arm { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 27 | price: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Arm` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_arms` is never read [INFO] [stdout] --> src/mab.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct MAB<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 43 | num_arms: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use personalized_pricing::custom::{self, simulate_custom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `evolve_pricing` [INFO] [stdout] --> src/main.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use personalized_pricing::evolution::{evolve_pricing, ESSettings, Selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `init_log_es`, `init_log_pso`, and `log_individual` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | init_log, init_log_es, init_log_mab, init_log_pso, log_event_history, log_individual [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `optimize_pricing` [INFO] [stdout] --> src/main.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | use personalized_pricing::particle_swarm::{optimize_pricing, PSOSettings}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `personalized_pricing::random_search::random_search` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use personalized_pricing::random_search::random_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | if (mab.run_id > 970) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - if (mab.run_id > 970) { [INFO] [stdout] 172 + if mab.run_id > 970 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_default_settings` [INFO] [stdout] --> src/main.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut es_default_settings = ESSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_default_settings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_steady_state_settings` [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut es_steady_state_settings = ESSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_steady_state_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pso_settings` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut pso_settings = PSOSettings { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pso_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut writer = init_log(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let result = simulate_custom(&settings, 0, &mut custom_writer); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use personalized_pricing::custom::{self, simulate_custom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut settings = ProblemSettings { [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:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut es_default_settings = ESSettings { [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:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut es_steady_state_settings = ESSettings { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `evolve_pricing` [INFO] [stdout] --> src/main.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use personalized_pricing::evolution::{evolve_pricing, ESSettings, Selection}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `init_log_es`, `init_log_pso`, and `log_individual` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | init_log, init_log_es, init_log_mab, init_log_pso, log_event_history, log_individual [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut pso_settings = PSOSettings { [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:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut mab_settings = MABSettings { [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:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut writer = init_log(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `optimize_pricing` [INFO] [stdout] --> src/main.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | use personalized_pricing::particle_swarm::{optimize_pricing, PSOSettings}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `personalized_pricing::random_search::random_search` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use personalized_pricing::random_search::random_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | if (mab.run_id > 970) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - if (mab.run_id > 970) { [INFO] [stdout] 172 + if mab.run_id > 970 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_default_settings` [INFO] [stdout] --> src/main.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut es_default_settings = ESSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_default_settings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_steady_state_settings` [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut es_steady_state_settings = ESSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_steady_state_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pso_settings` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut pso_settings = PSOSettings { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pso_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut writer = init_log(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let result = simulate_custom(&settings, 0, &mut custom_writer); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut settings = ProblemSettings { [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:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut es_default_settings = ESSettings { [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:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut es_steady_state_settings = ESSettings { [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:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut pso_settings = PSOSettings { [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:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut mab_settings = MABSettings { [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:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut writer = init_log(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.63s [INFO] running `Command { std: "docker" "inspect" "037726e39643a3ce0eb6246b2b5e6246547b12221a2f907224aea7e2f1d9832e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "037726e39643a3ce0eb6246b2b5e6246547b12221a2f907224aea7e2f1d9832e", kill_on_drop: false }` [INFO] [stdout] 037726e39643a3ce0eb6246b2b5e6246547b12221a2f907224aea7e2f1d9832e