[INFO] cloning repository https://github.com/billylin609/physics-load-file [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/billylin609/physics-load-file" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbillylin609%2Fphysics-load-file", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbillylin609%2Fphysics-load-file'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 815a3c35d59c0a23fabdc3cd699df80b7648093f [INFO] checking billylin609/physics-load-file against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbillylin609%2Fphysics-load-file" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/billylin609/physics-load-file [INFO] finished tweaking git repo https://github.com/billylin609/physics-load-file [INFO] tweaked toml for git repo https://github.com/billylin609/physics-load-file written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/billylin609/physics-load-file on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/billylin609/physics-load-file 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 507663856af7b176a88a8ae6a18a6e9ee1182f55ffaae711f369d0220a301fe0 [INFO] running `Command { std: "docker" "start" "-a" "507663856af7b176a88a8ae6a18a6e9ee1182f55ffaae711f369d0220a301fe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "507663856af7b176a88a8ae6a18a6e9ee1182f55ffaae711f369d0220a301fe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "507663856af7b176a88a8ae6a18a6e9ee1182f55ffaae711f369d0220a301fe0", kill_on_drop: false }` [INFO] [stdout] 507663856af7b176a88a8ae6a18a6e9ee1182f55ffaae711f369d0220a301fe0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c346f7cad01d1f3e2fcb60dff98074de7481f92ebdcfe5e55a9b23742068f160 [INFO] running `Command { std: "docker" "start" "-a" "c346f7cad01d1f3e2fcb60dff98074de7481f92ebdcfe5e55a9b23742068f160", kill_on_drop: false }` [INFO] [stderr] Checking read_chart v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | 0...9 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:279:6 [INFO] [stdout] | [INFO] [stdout] 279 | 10...19 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | 20...29 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:285:6 [INFO] [stdout] | [INFO] [stdout] 285 | 30...39 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:288:6 [INFO] [stdout] | [INFO] [stdout] 288 | 40...49 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:291:6 [INFO] [stdout] | [INFO] [stdout] 291 | 50...59 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:294:6 [INFO] [stdout] | [INFO] [stdout] 294 | 60...69 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:297:6 [INFO] [stdout] | [INFO] [stdout] 297 | 70...79 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:300:6 [INFO] [stdout] | [INFO] [stdout] 300 | 80...89 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:303:6 [INFO] [stdout] | [INFO] [stdout] 303 | 90...100 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 317 | 0...9 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:320:6 [INFO] [stdout] | [INFO] [stdout] 320 | 10...19 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:323:6 [INFO] [stdout] | [INFO] [stdout] 323 | 20...29 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:326:6 [INFO] [stdout] | [INFO] [stdout] 326 | 30...39 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:329:6 [INFO] [stdout] | [INFO] [stdout] 329 | 40...49 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:332:6 [INFO] [stdout] | [INFO] [stdout] 332 | 50...59 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | 0...9 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:279:6 [INFO] [stdout] | [INFO] [stdout] 279 | 10...19 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:335:6 [INFO] [stdout] | [INFO] [stdout] 335 | 60...69 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:338:6 [INFO] [stdout] | [INFO] [stdout] 338 | 70...79 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:341:6 [INFO] [stdout] | [INFO] [stdout] 341 | 80...89 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:344:6 [INFO] [stdout] | [INFO] [stdout] 344 | 90...100 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | 20...29 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:285:6 [INFO] [stdout] | [INFO] [stdout] 285 | 30...39 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:288:6 [INFO] [stdout] | [INFO] [stdout] 288 | 40...49 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:291:6 [INFO] [stdout] | [INFO] [stdout] 291 | 50...59 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:294:6 [INFO] [stdout] | [INFO] [stdout] 294 | 60...69 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:297:6 [INFO] [stdout] | [INFO] [stdout] 297 | 70...79 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:300:6 [INFO] [stdout] | [INFO] [stdout] 300 | 80...89 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:303:6 [INFO] [stdout] | [INFO] [stdout] 303 | 90...100 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 317 | 0...9 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:320:6 [INFO] [stdout] | [INFO] [stdout] 320 | 10...19 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:323:6 [INFO] [stdout] | [INFO] [stdout] 323 | 20...29 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:326:6 [INFO] [stdout] | [INFO] [stdout] 326 | 30...39 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:329:6 [INFO] [stdout] | [INFO] [stdout] 329 | 40...49 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:332:6 [INFO] [stdout] | [INFO] [stdout] 332 | 50...59 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:335:6 [INFO] [stdout] | [INFO] [stdout] 335 | 60...69 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:338:6 [INFO] [stdout] | [INFO] [stdout] 338 | 70...79 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:341:6 [INFO] [stdout] | [INFO] [stdout] 341 | 80...89 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/read/mod.rs:344:6 [INFO] [stdout] | [INFO] [stdout] 344 | 90...100 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `return_count` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut return_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_return_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_track_struct` [INFO] [stdout] --> src/read/mod.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut keep_track_struct = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_track_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_line` is never read [INFO] [stdout] --> src/read/mod.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ... current_line = String::new(); [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 `i` is never read [INFO] [stdout] --> src/read/mod.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | i += 1; [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/read/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut keep_track_struct = 0; [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: unused variable: `space_amount` [INFO] [stdout] --> src/read/mod.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | fn line_property (tab_amount: &i32, space_amount: &i32, line: &String) -> LineType { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_space_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `max_before_t` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | let mut max_before_t = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_max_before_t` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `max_after_t` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | let mut max_after_t = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_max_after_t` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_before_t` is never read [INFO] [stdout] --> src/read/mod.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | max_before_t = item[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 `max_after_t` is never read [INFO] [stdout] --> src/read/mod.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | max_after_t = item[0]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `return_count` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut return_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_return_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `momentum_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let momentum_percentage = BeAfCollsion::momentum_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_momentum_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_kinetic_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let energy_kinetic_percentage = BeAfCollsion::energy_kinetic_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_kinetic_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_track_struct` [INFO] [stdout] --> src/read/mod.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut keep_track_struct = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_track_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elastic_cmp_inelastic_velocity_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let elastic_cmp_inelastic_velocity_percentage = BeAfCollsion::elastic_cmp_inelastic_velocity_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elastic_cmp_inelastic_velocity_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_line` is never read [INFO] [stdout] --> src/read/mod.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ... current_line = String::new(); [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: unused variable: `time_difference` [INFO] [stdout] --> src/phy_cal/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let time_difference = BeAfCollsion::time_difference(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/read/mod.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | i += 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/phy_cal/mod.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut index: u8 = 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/phy_cal/mod.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut no_vaild_data = true; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vb_prime_coefficient` [INFO] [stdout] --> src/phy_cal/mod.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let mut vb_prime_coefficient = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vb_prime_coefficient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/phy_cal/mod.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut vb_prime_coefficient = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_time` [INFO] [stdout] --> src/phy_cal/mod.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut before_time = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_time` [INFO] [stdout] --> src/phy_cal/mod.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut after_time = 0.0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_va` [INFO] [stdout] --> src/phy_cal/mod.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut before_va = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_va` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/read/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut keep_track_struct = 0; [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: unused variable: `before_vb` [INFO] [stdout] --> src/phy_cal/mod.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let mut before_vb = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_vb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space_amount` [INFO] [stdout] --> src/read/mod.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | fn line_property (tab_amount: &i32, space_amount: &i32, line: &String) -> LineType { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_space_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `max_before_t` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | let mut max_before_t = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_max_before_t` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `max_after_t` is assigned to, but never used [INFO] [stdout] --> src/read/mod.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | let mut max_after_t = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_max_after_t` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_before_t` is never read [INFO] [stdout] --> src/read/mod.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | max_before_t = item[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 `max_after_t` is never read [INFO] [stdout] --> src/read/mod.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | max_after_t = item[0]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_va` [INFO] [stdout] --> src/phy_cal/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut after_va = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_va` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_vb` [INFO] [stdout] --> src/phy_cal/mod.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let mut after_vb = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_vb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/phy_cal/mod.rs:194:60 [INFO] [stdout] | [INFO] [stdout] 194 | fn before_after_collision_speed (data_set: &Vec>, time: &f64, v_before_i: &u8, v_after_i:&u8) -> BeAfCollsion { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/phy_cal/mod.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let mut before_time = 0.0; [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/phy_cal/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let mut after_time = 0.0; [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/phy_cal/mod.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let mut before_va = 0.0; [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/phy_cal/mod.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let mut before_vb = 0.0; [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/phy_cal/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let mut after_va = 0.0; [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/phy_cal/mod.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | let mut after_vb = 0.0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `momentum_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let momentum_percentage = BeAfCollsion::momentum_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_momentum_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_kinetic_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let energy_kinetic_percentage = BeAfCollsion::energy_kinetic_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_kinetic_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elastic_cmp_inelastic_velocity_percentage` [INFO] [stdout] --> src/phy_cal/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let elastic_cmp_inelastic_velocity_percentage = BeAfCollsion::elastic_cmp_inelastic_velocity_percentage(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elastic_cmp_inelastic_velocity_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_difference` [INFO] [stdout] --> src/phy_cal/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let time_difference = BeAfCollsion::time_difference(&detail_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/phy_cal/mod.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut index: u8 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_this` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn call_this() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `user_preference` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn user_preference(measurement: &Vec) -> InfoIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InfoIndex` is never constructed [INFO] [stdout] --> src/phy_cal/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct InfoIndex{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ask_io` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn ask_io (max_index: u8) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_collide_time_range` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn find_collide_time_range(data_set: &Vec>, v_after: &u8) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BeAfCollsion` is never constructed [INFO] [stdout] --> src/phy_cal/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | struct BeAfCollsion { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `momentum_percentage`, `energy_kinetic_percentage`, `elastic_cmp_inelastic_velocity_percentage`, and `time_difference` are never used [INFO] [stdout] --> src/phy_cal/mod.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 109 | impl BeAfCollsion{ [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 110 | fn momentum_percentage(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn energy_kinetic_percentage(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn elastic_cmp_inelastic_velocity_percentage(&self) -> IdealTwoCase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn time_difference(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdealTwoCase` is never constructed [INFO] [stdout] --> src/phy_cal/mod.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | struct IdealTwoCase { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `before_after_collision_speed` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn before_after_collision_speed (data_set: &Vec>, time: &f64, v_before_i: &u8, v_after_i:&u8) -> BeAfCollsion { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ask_mass` is never used [INFO] [stdout] --> src/phy_cal/mod.rs:328:4 [INFO] [stdout] | [INFO] [stdout] 328 | fn ask_mass() -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/phy_cal/mod.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | if index <= max_index && index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/phy_cal/mod.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | no_vaild_data == false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = no_vaild_data == false; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/phy_cal/mod.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut no_vaild_data = true; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vb_prime_coefficient` [INFO] [stdout] --> src/phy_cal/mod.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let mut vb_prime_coefficient = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vb_prime_coefficient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/phy_cal/mod.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut vb_prime_coefficient = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_time` [INFO] [stdout] --> src/phy_cal/mod.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut before_time = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_time` [INFO] [stdout] --> src/phy_cal/mod.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut after_time = 0.0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_va` [INFO] [stdout] --> src/phy_cal/mod.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut before_va = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_va` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_vb` [INFO] [stdout] --> src/phy_cal/mod.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let mut before_vb = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_vb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_va` [INFO] [stdout] --> src/phy_cal/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut after_va = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_va` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_vb` [INFO] [stdout] --> src/phy_cal/mod.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let mut after_vb = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_vb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/phy_cal/mod.rs:194:60 [INFO] [stdout] | [INFO] [stdout] 194 | fn before_after_collision_speed (data_set: &Vec>, time: &f64, v_before_i: &u8, v_after_i:&u8) -> BeAfCollsion { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/phy_cal/mod.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let mut before_time = 0.0; [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/phy_cal/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let mut after_time = 0.0; [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/phy_cal/mod.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let mut before_va = 0.0; [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/phy_cal/mod.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let mut before_vb = 0.0; [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/phy_cal/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let mut after_va = 0.0; [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/phy_cal/mod.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | let mut after_vb = 0.0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `case1_va`, `case1_vb`, `case1_percentage`, `case2_va`, `case2_vb`, and `case2_percentage` are never read [INFO] [stdout] --> src/phy_cal/mod.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | struct IdealTwoCase { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 186 | case1_va: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | case1_vb: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 188 | case1_percentage: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 189 | case2_va: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 190 | case2_vb: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 191 | case2_percentage:f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/phy_cal/mod.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | if index <= max_index && index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/phy_cal/mod.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | no_vaild_data == false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = no_vaild_data == false; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_chart::read` [INFO] [stdout] --> tests/intergrated_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use read_chart::read; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "c346f7cad01d1f3e2fcb60dff98074de7481f92ebdcfe5e55a9b23742068f160", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c346f7cad01d1f3e2fcb60dff98074de7481f92ebdcfe5e55a9b23742068f160", kill_on_drop: false }` [INFO] [stdout] c346f7cad01d1f3e2fcb60dff98074de7481f92ebdcfe5e55a9b23742068f160