[INFO] cloning repository https://github.com/N9199/market_sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/N9199/market_sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FN9199%2Fmarket_sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FN9199%2Fmarket_sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9eab7c2347a1ff010619ba8df46b9a0bec44ba70 [INFO] testing N9199/market_sim against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FN9199%2Fmarket_sim" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/N9199/market_sim on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/N9199/market_sim [INFO] finished tweaking git repo https://github.com/N9199/market_sim [INFO] tweaked toml for git repo https://github.com/N9199/market_sim written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/N9199/market_sim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bce0991e05f0806b4a8855d483aff4b53604eea9e88116a71f706d6e1a37c71d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bce0991e05f0806b4a8855d483aff4b53604eea9e88116a71f706d6e1a37c71d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bce0991e05f0806b4a8855d483aff4b53604eea9e88116a71f706d6e1a37c71d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bce0991e05f0806b4a8855d483aff4b53604eea9e88116a71f706d6e1a37c71d", kill_on_drop: false }` [INFO] [stdout] bce0991e05f0806b4a8855d483aff4b53604eea9e88116a71f706d6e1a37c71d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 693674b0da58a9376af384596e27269e87a772f1afc8acb16daa99ef6f49b8a6 [INFO] running `Command { std: "docker" "start" "-a" "693674b0da58a9376af384596e27269e87a772f1afc8acb16daa99ef6f49b8a6", kill_on_drop: false }` [INFO] [stderr] Compiling sum_type v0.2.0 [INFO] [stderr] Compiling libsqlite3-sys v0.21.0 (https://github.com/rusqlite/rusqlite#bd96f61e) [INFO] [stderr] Compiling hashlink v0.6.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling rusqlite v0.24.2 (https://github.com/rusqlite/rusqlite#bd96f61e) [INFO] [stderr] Compiling market_sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `sqlIO` should have an upper camel case name [INFO] [stdout] --> src/io/sql.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct sqlIO { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SqlIo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `stdIO` should have an upper camel case name [INFO] [stdout] --> src/io/stdio.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct stdIO {} [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `StdIo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info`, `warn` [INFO] [stdout] --> src/simulation/sim.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Company` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use simulation::sim::{sim, Company}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/io.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | fn load(&mut self, file: &str) -> Result, Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/io/sql.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | for (id, price) in info { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/io/sql.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let time: usize = temp.last().unwrap_or(Ok(0))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io/sql.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io/stdio.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io/stdio.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io/stdio.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let info = fs::read_to_string(file)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/simulation/sim.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | out: T, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `eps` should have an upper case name [INFO] [stdout] --> src/simulation/sim.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const eps: f64 = 0.001; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `EPS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.00s [INFO] running `Command { std: "docker" "inspect" "693674b0da58a9376af384596e27269e87a772f1afc8acb16daa99ef6f49b8a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "693674b0da58a9376af384596e27269e87a772f1afc8acb16daa99ef6f49b8a6", kill_on_drop: false }` [INFO] [stdout] 693674b0da58a9376af384596e27269e87a772f1afc8acb16daa99ef6f49b8a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1208fd61a7ca73daa01b2f239b24b25a581556fa4ef887d4a6a8184bdde38eb7 [INFO] running `Command { std: "docker" "start" "-a" "1208fd61a7ca73daa01b2f239b24b25a581556fa4ef887d4a6a8184bdde38eb7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling market_sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `sqlIO` should have an upper camel case name [INFO] [stdout] --> src/io/sql.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct sqlIO { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SqlIo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `stdIO` should have an upper camel case name [INFO] [stdout] --> src/io/stdio.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct stdIO {} [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `StdIo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info`, `warn` [INFO] [stdout] --> src/simulation/sim.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Company` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use simulation::sim::{sim, Company}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/io.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | fn load(&mut self, file: &str) -> Result, Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/io/sql.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | for (id, price) in info { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/io/sql.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let time: usize = temp.last().unwrap_or(Ok(0))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io/sql.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io/stdio.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `companies` [INFO] [stdout] --> src/io/stdio.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/io/stdio.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let info = fs::read_to_string(file)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/simulation/sim.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | out: T, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `eps` should have an upper case name [INFO] [stdout] --> src/simulation/sim.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const eps: f64 = 0.001; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `EPS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "1208fd61a7ca73daa01b2f239b24b25a581556fa4ef887d4a6a8184bdde38eb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1208fd61a7ca73daa01b2f239b24b25a581556fa4ef887d4a6a8184bdde38eb7", kill_on_drop: false }` [INFO] [stdout] 1208fd61a7ca73daa01b2f239b24b25a581556fa4ef887d4a6a8184bdde38eb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 76e2a97ccbdb3a346cf082920f2f67fcb35b32663e25a4d39c312827a6ea98cf [INFO] running `Command { std: "docker" "start" "-a" "76e2a97ccbdb3a346cf082920f2f67fcb35b32663e25a4d39c312827a6ea98cf", kill_on_drop: false }` [INFO] [stderr] warning: type `sqlIO` should have an upper camel case name [INFO] [stderr] --> src/io/sql.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct sqlIO { [INFO] [stderr] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `SqlIo` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `stdIO` should have an upper camel case name [INFO] [stderr] --> src/io/stdio.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct stdIO {} [INFO] [stderr] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `StdIo` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug`, `info`, `warn` [INFO] [stderr] --> src/simulation/sim.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | use log::{debug, info, warn}; [INFO] [stderr] | ^^^^^ ^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Company` [INFO] [stderr] --> src/main.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use simulation::sim::{sim, Company}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> src/io.rs:28:25 [INFO] [stderr] | [INFO] [stderr] 28 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `companies` [INFO] [stderr] --> src/io.rs:31:24 [INFO] [stderr] | [INFO] [stderr] 31 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/io.rs:34:24 [INFO] [stderr] | [INFO] [stderr] 34 | fn load(&mut self, file: &str) -> Result, Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/io/sql.rs:14:18 [INFO] [stderr] | [INFO] [stderr] 14 | for (id, price) in info { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time` [INFO] [stderr] --> src/io/sql.rs:19:17 [INFO] [stderr] | [INFO] [stderr] 19 | let time: usize = temp.last().unwrap_or(Ok(0))?; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `companies` [INFO] [stderr] --> src/io/sql.rs:23:24 [INFO] [stderr] | [INFO] [stderr] 23 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> src/io/stdio.rs:10:25 [INFO] [stderr] | [INFO] [stderr] 10 | fn write(&mut self, info: &Vec<(usize, f64)>) -> Result<(), Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `companies` [INFO] [stderr] --> src/io/stdio.rs:13:24 [INFO] [stderr] | [INFO] [stderr] 13 | fn save(&mut self, companies: &BTreeMap) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_companies` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> src/io/stdio.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | let info = fs::read_to_string(file)?; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `out` [INFO] [stderr] --> src/simulation/sim.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | out: T, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stderr] [INFO] [stderr] warning: constant `eps` should have an upper case name [INFO] [stderr] --> src/simulation/sim.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const eps: f64 = 0.001; [INFO] [stderr] | ^^^ help: convert the identifier to upper case: `EPS` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `market_sim` (bin "market_sim" test) generated 15 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/market_sim-8eecea951c2f3d7e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "76e2a97ccbdb3a346cf082920f2f67fcb35b32663e25a4d39c312827a6ea98cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76e2a97ccbdb3a346cf082920f2f67fcb35b32663e25a4d39c312827a6ea98cf", kill_on_drop: false }` [INFO] [stdout] 76e2a97ccbdb3a346cf082920f2f67fcb35b32663e25a4d39c312827a6ea98cf