[INFO] cloning repository https://github.com/coding-quizzer/bus_status
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/coding-quizzer/bus_status" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoding-quizzer%2Fbus_status", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoding-quizzer%2Fbus_status'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 28b31e4eeff46fa52a9aae4c53af07c882af045d
[INFO] checking coding-quizzer/bus_status against master#ba412a6e70ac84641be7764d088acabd0eb3fa39 for pr-145457
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoding-quizzer%2Fbus_status" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/coding-quizzer/bus_status
[INFO] finished tweaking git repo https://github.com/coding-quizzer/bus_status
[INFO] tweaked toml for git repo https://github.com/coding-quizzer/bus_status written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/coding-quizzer/bus_status on toolchain ba412a6e70ac84641be7764d088acabd0eb3fa39
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/coding-quizzer/bus_status 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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c4e48e67f7d898bbb911b40def644a89abd7a56f6973f1973e94e7f38eb08486
[INFO] running `Command { std: "docker" "start" "-a" "c4e48e67f7d898bbb911b40def644a89abd7a56f6973f1973e94e7f38eb08486", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c4e48e67f7d898bbb911b40def644a89abd7a56f6973f1973e94e7f38eb08486", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c4e48e67f7d898bbb911b40def644a89abd7a56f6973f1973e94e7f38eb08486", kill_on_drop: false }`
[INFO] [stdout] c4e48e67f7d898bbb911b40def644a89abd7a56f6973f1973e94e7f38eb08486
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 75bb7e5f30179e9361f067fce6ff9dbceeb2afc76c2ec536d09b2b64517ce39b
[INFO] running `Command { std: "docker" "start" "-a" "75bb7e5f30179e9361f067fce6ff9dbceeb2afc76c2ec536d09b2b64517ce39b", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.148
[INFO] [stderr] Compiling proc-macro2 v1.0.70
[INFO] [stderr] Compiling unicode-ident v1.0.12
[INFO] [stderr] Compiling serde v1.0.193
[INFO] [stderr] Compiling num-conv v0.1.0
[INFO] [stderr] Compiling time-core v0.1.4
[INFO] [stderr] Compiling serde_json v1.0.108
[INFO] [stderr] Checking cfg-if v1.0.0
[INFO] [stderr] Checking powerfmt v0.2.0
[INFO] [stderr] Checking itoa v1.0.10
[INFO] [stderr] Checking ppv-lite86 v0.2.17
[INFO] [stderr] Checking num_threads v0.1.7
[INFO] [stderr] Checking lazy_static v1.5.0
[INFO] [stderr] Checking log v0.4.27
[INFO] [stderr] Checking ryu v1.0.16
[INFO] [stderr] Checking colored v2.2.0
[INFO] [stderr] Compiling time-macros v0.2.22
[INFO] [stderr] Checking deranged v0.4.0
[INFO] [stderr] Compiling quote v1.0.33
[INFO] [stderr] Checking getrandom v0.2.10
[INFO] [stderr] Compiling syn v2.0.41
[INFO] [stderr] Checking rand_core v0.6.4
[INFO] [stderr] Checking rand_chacha v0.3.1
[INFO] [stderr] Checking time v0.3.41
[INFO] [stderr] Checking rand v0.8.5
[INFO] [stderr] Checking simple_logger v5.0.0
[INFO] [stderr] Compiling serde_derive v1.0.193
[INFO] [stderr] Checking uuid v1.4.1
[INFO] [stderr] Checking bus_system v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::station::Station`
[INFO] [stdout] --> src/bus.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use crate::station::Station;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/bus.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/bus.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/main_loop.rs:13:57
[INFO] [stdout] |
[INFO] [stdout] 13 | BusMessages, BusThreadStatus, StationEventMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/main_loop.rs:26:5
[INFO] [stdout] |
[INFO] [stdout] 26 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:915:20
[INFO] [stdout] |
[INFO] [stdout] 915 | if (current_time_tick.number == 0) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 915 - if (current_time_tick.number == 0) {
[INFO] [stdout] 915 + if current_time_tick.number == 0 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:1077:16
[INFO] [stdout] |
[INFO] [stdout] 1077 | if (bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] | ^
[INFO] [stdout] ...
[INFO] [stdout] 1081 | })) {
[INFO] [stdout] | ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 1077 ~ if bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] 1078 | LOADING_BUS_VALID_STATUSES
[INFO] [stdout] 1079 | .iter()
[INFO] [stdout] 1080 | .any(|valid_status| bus_thread_status == valid_status)
[INFO] [stdout] 1081 ~ }) {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collections::VecDeque`
[INFO] [stdout] --> src/passenger.rs:4:11
[INFO] [stdout] |
[INFO] [stdout] 4 | use std::{collections::VecDeque, iter::Peekable};
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/station.rs:10:49
[INFO] [stdout] |
[INFO] [stdout] 10 | StationEventMessages, StationToBusMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `station`
[INFO] [stdout] --> src/station.rs:17:13
[INFO] [stdout] |
[INFO] [stdout] 17 | use crate::{station, TimeTick};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/station.rs:19:5
[INFO] [stdout] |
[INFO] [stdout] 19 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout] --> src/station.rs:353:19
[INFO] [stdout] |
[INFO] [stdout] 353 | while (!time_tick_up_to_date) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 353 - while (!time_tick_up_to_date) {
[INFO] [stdout] 353 + while !time_tick_up_to_date {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:380:28
[INFO] [stdout] |
[INFO] [stdout] 380 | if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 380 - if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] 380 + if new_time_step.number - time_tick.number > 1 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:383:28
[INFO] [stdout] |
[INFO] [stdout] 383 | if (new_time_step.number < time_tick.number) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 383 - if (new_time_step.number < time_tick.number) {
[INFO] [stdout] 383 + if new_time_step.number < time_tick.number {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:700:28
[INFO] [stdout] |
[INFO] [stdout] 700 | if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 700 - if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] 700 + if received_message == StationEventMessages::NoMessage {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `TerminalType`
[INFO] [stdout] --> src/thread.rs:2:39
[INFO] [stdout] |
[INFO] [stdout] 2 | use crate::display::{TerminalMessage, TerminalType};
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/lib.rs:13:24
[INFO] [stdout] |
[INFO] [stdout] 13 | use std::collections::{HashMap, VecDeque};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::station::Station`
[INFO] [stdout] --> src/bus.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use crate::station::Station;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/bus.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/bus.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/main_loop.rs:13:57
[INFO] [stdout] |
[INFO] [stdout] 13 | BusMessages, BusThreadStatus, StationEventMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/main_loop.rs:26:5
[INFO] [stdout] |
[INFO] [stdout] 26 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:915:20
[INFO] [stdout] |
[INFO] [stdout] 915 | if (current_time_tick.number == 0) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 915 - if (current_time_tick.number == 0) {
[INFO] [stdout] 915 + if current_time_tick.number == 0 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:1077:16
[INFO] [stdout] |
[INFO] [stdout] 1077 | if (bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] | ^
[INFO] [stdout] ...
[INFO] [stdout] 1081 | })) {
[INFO] [stdout] | ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 1077 ~ if bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] 1078 | LOADING_BUS_VALID_STATUSES
[INFO] [stdout] 1079 | .iter()
[INFO] [stdout] 1080 | .any(|valid_status| bus_thread_status == valid_status)
[INFO] [stdout] 1081 ~ }) {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collections::VecDeque`
[INFO] [stdout] --> src/passenger.rs:4:11
[INFO] [stdout] |
[INFO] [stdout] 4 | use std::{collections::VecDeque, iter::Peekable};
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/station.rs:10:49
[INFO] [stdout] |
[INFO] [stdout] 10 | StationEventMessages, StationToBusMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `station`
[INFO] [stdout] --> src/station.rs:17:13
[INFO] [stdout] |
[INFO] [stdout] 17 | use crate::{station, TimeTick};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/station.rs:19:5
[INFO] [stdout] |
[INFO] [stdout] 19 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout] --> src/station.rs:353:19
[INFO] [stdout] |
[INFO] [stdout] 353 | while (!time_tick_up_to_date) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 353 - while (!time_tick_up_to_date) {
[INFO] [stdout] 353 + while !time_tick_up_to_date {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:380:28
[INFO] [stdout] |
[INFO] [stdout] 380 | if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 380 - if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] 380 + if new_time_step.number - time_tick.number > 1 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:383:28
[INFO] [stdout] |
[INFO] [stdout] 383 | if (new_time_step.number < time_tick.number) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 383 - if (new_time_step.number < time_tick.number) {
[INFO] [stdout] 383 + if new_time_step.number < time_tick.number {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:700:28
[INFO] [stdout] |
[INFO] [stdout] 700 | if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 700 - if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] 700 + if received_message == StationEventMessages::NoMessage {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `TerminalType`
[INFO] [stdout] --> src/thread.rs:2:39
[INFO] [stdout] |
[INFO] [stdout] 2 | use crate::display::{TerminalMessage, TerminalType};
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/lib.rs:13:24
[INFO] [stdout] |
[INFO] [stdout] 13 | use std::collections::{HashMap, VecDeque};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::station::Station`
[INFO] [stdout] --> src/bus.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use crate::station::Station;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/bus.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/bus.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/main_loop.rs:13:57
[INFO] [stdout] |
[INFO] [stdout] 13 | BusMessages, BusThreadStatus, StationEventMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout] --> src/main_loop.rs:26:5
[INFO] [stdout] |
[INFO] [stdout] 26 | use std::thread::current;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:915:20
[INFO] [stdout] |
[INFO] [stdout] 915 | if (current_time_tick.number == 0) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 915 - if (current_time_tick.number == 0) {
[INFO] [stdout] 915 + if current_time_tick.number == 0 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/main_loop.rs:1077:16
[INFO] [stdout] |
[INFO] [stdout] 1077 | if (bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] | ^
[INFO] [stdout] ...
[INFO] [stdout] 1081 | })) {
[INFO] [stdout] | ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 1077 ~ if bus_status_vector.iter().all(|bus_thread_status| {
[INFO] [stdout] 1078 | LOADING_BUS_VALID_STATUSES
[INFO] [stdout] 1079 | .iter()
[INFO] [stdout] 1080 | .any(|valid_status| bus_thread_status == valid_status)
[INFO] [stdout] 1081 ~ }) {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collections::VecDeque`
[INFO] [stdout] --> src/passenger.rs:4:11
[INFO] [stdout] |
[INFO] [stdout] 4 | use std::{collections::VecDeque, iter::Peekable};
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StationToDisplayMessages`
[INFO] [stdout] --> src/station.rs:10:49
[INFO] [stdout] |
[INFO] [stdout] 10 | StationEventMessages, StationToBusMessages, StationToDisplayMessages,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `station`
[INFO] [stdout] --> src/station.rs:17:13
[INFO] [stdout] |
[INFO] [stdout] 17 | use crate::{station, TimeTick};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout] --> src/station.rs:19:5
[INFO] [stdout] |
[INFO] [stdout] 19 | use core::time;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout] --> src/station.rs:353:19
[INFO] [stdout] |
[INFO] [stdout] 353 | while (!time_tick_up_to_date) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 353 - while (!time_tick_up_to_date) {
[INFO] [stdout] 353 + while !time_tick_up_to_date {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:380:28
[INFO] [stdout] |
[INFO] [stdout] 380 | if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 380 - if (new_time_step.number - time_tick.number > 1) {
[INFO] [stdout] 380 + if new_time_step.number - time_tick.number > 1 {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:383:28
[INFO] [stdout] |
[INFO] [stdout] 383 | if (new_time_step.number < time_tick.number) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 383 - if (new_time_step.number < time_tick.number) {
[INFO] [stdout] 383 + if new_time_step.number < time_tick.number {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/station.rs:700:28
[INFO] [stdout] |
[INFO] [stdout] 700 | if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 700 - if (received_message == StationEventMessages::NoMessage) {
[INFO] [stdout] 700 + if received_message == StationEventMessages::NoMessage {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `TerminalType`
[INFO] [stdout] --> src/thread.rs:2:39
[INFO] [stdout] |
[INFO] [stdout] 2 | use crate::display::{TerminalMessage, TerminalType};
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/lib.rs:13:24
[INFO] [stdout] |
[INFO] [stdout] 13 | use std::collections::{HashMap, VecDeque};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout] --> src/bus.rs:386:33
[INFO] [stdout] |
[INFO] [stdout] 384 | ... SyncToBusMessages::AdvanceTimeStep(time_step) => time_step,
[INFO] [stdout] | --------------------------------------------- matches all the relevant values
[INFO] [stdout] 385 | ... // So far, there are no other options
[INFO] [stdout] 386 | ... _ => unreachable!(),
[INFO] [stdout] | ^ no value can reach this
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout] --> src/bus.rs:386:33
[INFO] [stdout] |
[INFO] [stdout] 384 | ... SyncToBusMessages::AdvanceTimeStep(time_step) => time_step,
[INFO] [stdout] | --------------------------------------------- matches all the relevant values
[INFO] [stdout] 385 | ... // So far, there are no other options
[INFO] [stdout] 386 | ... _ => unreachable!(),
[INFO] [stdout] | ^ no value can reach this
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout] --> src/main_loop.rs:819:16
[INFO] [stdout] |
[INFO] [stdout] 819 | if let crate::thread::StationToSyncMessages::CrashProgram { ref message } =
[INFO] [stdout] | ________________^
[INFO] [stdout] 820 | | incoming_message
[INFO] [stdout] | |________________________________^
[INFO] [stdout] |
[INFO] [stdout] = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout] = help: consider replacing the `if let` with a `let`
[INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `rx_to_passengers`
[INFO] [stdout] --> src/main_loop.rs:94:28
[INFO] [stdout] |
[INFO] [stdout] 94 | let (tx_to_passengers, rx_to_passengers) = mpsc::channel::