[INFO] cloning repository https://github.com/MidasLamb/autocopier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MidasLamb/autocopier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMidasLamb%2Fautocopier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMidasLamb%2Fautocopier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4387b605297daa1c36d9027dd32fa6cfefccaade [INFO] checking MidasLamb/autocopier/4387b605297daa1c36d9027dd32fa6cfefccaade against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMidasLamb%2Fautocopier" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MidasLamb/autocopier on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MidasLamb/autocopier [INFO] finished tweaking git repo https://github.com/MidasLamb/autocopier [INFO] tweaked toml for git repo https://github.com/MidasLamb/autocopier written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MidasLamb/autocopier 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mio-extras v2.0.5 [INFO] [stderr] Downloaded clicolors-control v1.0.1 [INFO] [stderr] Downloaded termios v0.3.1 [INFO] [stderr] Downloaded inotify v0.6.1 [INFO] [stderr] Downloaded console v0.9.0 [INFO] [stderr] Downloaded cc v1.0.47 [INFO] [stderr] Downloaded notify v4.0.14 [INFO] [stderr] Downloaded syn v1.0.5 [INFO] [stderr] Downloaded serde v1.0.101 [INFO] [stderr] Downloaded serde_json v1.0.41 [INFO] [stderr] Downloaded ctrlc v3.1.3 [INFO] [stderr] Downloaded chrono v0.4.9 [INFO] [stderr] Downloaded proc-macro2 v1.0.5 [INFO] [stderr] Downloaded serde_derive v1.0.101 [INFO] [stderr] Downloaded filetime v0.2.7 [INFO] [stderr] Downloaded libc v0.2.62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] afc7391f1d40efbc083aff61552897974caa14cf9f794e0e4355cffdde25510e [INFO] running `Command { std: "docker" "start" "-a" "afc7391f1d40efbc083aff61552897974caa14cf9f794e0e4355cffdde25510e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "afc7391f1d40efbc083aff61552897974caa14cf9f794e0e4355cffdde25510e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afc7391f1d40efbc083aff61552897974caa14cf9f794e0e4355cffdde25510e", kill_on_drop: false }` [INFO] [stdout] afc7391f1d40efbc083aff61552897974caa14cf9f794e0e4355cffdde25510e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 743cbc54757083f03fd0ce2d7daa60c6e9bee07c0ce2b1778030d5a4fe378205 [INFO] running `Command { std: "docker" "start" "-a" "743cbc54757083f03fd0ce2d7daa60c6e9bee07c0ce2b1778030d5a4fe378205", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking same-file v1.0.5 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking walkdir v2.2.9 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking clicolors-control v1.0.1 [INFO] [stderr] Checking filetime v0.2.7 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking inotify v0.6.1 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking regex v1.3.1 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking notify v4.0.14 [INFO] [stderr] Checking console v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Checking ctrlc v3.1.3 [INFO] [stderr] Checking serde_json v1.0.41 [INFO] [stderr] Checking autocopier v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::file_watcher::ReadDirectoryChangesWatcher [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/notifications.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::file_watcher::ReadDirectoryChangesWatcher [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::file_watcher::ReadDirectoryChangesWatcher [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `notify::ReadDirectoryChangesWatcher` [INFO] [stdout] --> src/file_watcher/notifications.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ReadDirectoryChangesWatcher` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::file_watcher::ReadDirectoryChangesWatcher [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub use self::windows::ReadDirectoryChangesWatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/notify-4.0.14/src/lib.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration_reader/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/configuration_reader/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/configuration_reader/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/configuration_reader/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/configuration_reader/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/configuration_reader/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/configuration_reader/mod.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | while (s.contains("\\\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - while (s.contains("\\\\")) { [INFO] [stdout] 46 + while s.contains("\\\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/configuration_reader/mod.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if (contains_multiple(&from)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - if (contains_multiple(&from)) { [INFO] [stdout] 151 + if contains_multiple(&from) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DebouncedEvent`, `PollWatcher`, and `watcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/file_watcher/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/file_watcher/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/file_watcher/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/file_watcher/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{fs, thread}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `TryRecvError`, and `channel` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc::{channel, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::DebouncedEvent::*` [INFO] [stdout] --> src/file_watcher/notifications.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::DebouncedEvent::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/notifications.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PollWatcher`, `RecursiveMode`, `Watcher`, and `watcher` [INFO] [stdout] --> src/file_watcher/notifications.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/file_watcher/notifications.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration_reader/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/file_watcher/notifications.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/configuration_reader/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, and `channel` [INFO] [stdout] --> src/file_watcher/notifications.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/file_watcher/notifications.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/configuration_reader/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/notifications.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/configuration_reader/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::JoinHandle` [INFO] [stdout] --> src/file_watcher/notifications.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/configuration_reader/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/file_watcher/notifications.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `thread` [INFO] [stdout] --> src/file_watcher/notifications.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{fs, thread}; [INFO] [stdout] | ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/configuration_reader/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::offset::Local` [INFO] [stdout] --> src/ui/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::offset::Local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> src/ui/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/configuration_reader/mod.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | while (s.contains("\\\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - while (s.contains("\\\\")) { [INFO] [stdout] 46 + while s.contains("\\\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/ui/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/configuration_reader/mod.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if (contains_multiple(&from)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - if (contains_multiple(&from)) { [INFO] [stdout] 151 + if contains_multiple(&from) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RecvError` [INFO] [stdout] --> src/ui/mod.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::mpsc::{Receiver, RecvError, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/ui/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{fs, thread}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DebouncedEvent`, `PollWatcher`, and `watcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if (SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10)) { [INFO] [stdout] 33 + if SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | } else if (SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] | ^ [INFO] [stdout] 39 | < Duration::from_secs(60)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 ~ } else if SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] 39 ~ < Duration::from_secs(60) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/file_watcher/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/file_watcher/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | } else if (SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] | ^ [INFO] [stdout] 46 | < Duration::from_secs(10 * 60)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 ~ } else if SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] 46 ~ < Duration::from_secs(10 * 60) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/file_watcher/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | if (to_output != info.last_output) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (to_output != info.last_output) { [INFO] [stdout] 70 + if to_output != info.last_output { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console::Term` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use console::Term; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/file_watcher/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{fs, thread}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::DebouncedEvent::*` [INFO] [stdout] --> src/file_watcher/notifications.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::DebouncedEvent::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::RecursiveMode::Recursive` [INFO] [stdout] --> src/file_watcher/notifications.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use notify::RecursiveMode::Recursive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PollWatcher`, `RecursiveMode`, `Watcher`, and `watcher` [INFO] [stdout] --> src/file_watcher/notifications.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/file_watcher/notifications.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/file_watcher/notifications.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, and `channel` [INFO] [stdout] --> src/file_watcher/notifications.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/file_watcher/notifications.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLock` [INFO] [stdout] --> src/file_watcher/notifications.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::JoinHandle` [INFO] [stdout] --> src/file_watcher/notifications.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/file_watcher/notifications.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `thread` [INFO] [stdout] --> src/file_watcher/notifications.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{fs, thread}; [INFO] [stdout] | ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::offset::Local` [INFO] [stdout] --> src/ui/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::offset::Local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> src/ui/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/ui/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RecvError` [INFO] [stdout] --> src/ui/mod.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::mpsc::{Receiver, RecvError, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/ui/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{fs, thread}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if (SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10)) { [INFO] [stdout] 33 + if SystemTime::now().duration_since(*st).unwrap() < Duration::from_secs(10) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | } else if (SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] | ^ [INFO] [stdout] 39 | < Duration::from_secs(60)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 ~ } else if SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] 39 ~ < Duration::from_secs(60) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | } else if (SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] | ^ [INFO] [stdout] 46 | < Duration::from_secs(10 * 60)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 ~ } else if SystemTime::now().duration_since(*st).unwrap() [INFO] [stdout] 46 ~ < Duration::from_secs(10 * 60) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ui/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | if (to_output != info.last_output) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (to_output != info.last_output) { [INFO] [stdout] 70 + if to_output != info.last_output { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console::Term` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use console::Term; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | thread::sleep_ms(100); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | thread::sleep_ms(100); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/file_watcher/mod.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | watcher, DebouncedEvent, PollWatcher, ReadDirectoryChangesWatcher, RecursiveMode, Watcher, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/configuration_reader/mod.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut failed_vec: Vec = Vec::new(); [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: `dur` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:84:40 [INFO] [stdout] | [INFO] [stdout] 84 | fn new(tx: Sender, dur: Duration) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dur` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recursive_mode` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | recursive_mode: RecursiveMode, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recursive_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file_watcher/my_watcher.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut v = &mut *self.files_to_watch.lock().unwrap(); [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/file_watcher/my_watcher.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut v = &mut *self.files_to_watch.lock().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/configuration_reader/mod.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut failed_vec: Vec = Vec::new(); [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: `unparsed` [INFO] [stdout] --> src/main.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | let (mut configuration, unparsed) = match parse_configuration(configuration_file, step_in_chain) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/configuration_reader/mod.rs:207:29 [INFO] [stdout] | [INFO] [stdout] 207 | let (configuration, unparsed) = parse_result.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/configuration_reader/mod.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | let (configuration, unparsed) = parse_result.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/configuration_reader/mod.rs:289:29 [INFO] [stdout] | [INFO] [stdout] 289 | let (configuration, unparsed) = parse_result.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/configuration_reader/mod.rs:316:29 [INFO] [stdout] | [INFO] [stdout] 316 | let (configuration, unparsed) = parse_result.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | let (mut configuration, unparsed) = match parse_configuration(configuration_file, step_in_chain) [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/configuration_reader/mod.rs:389:29 [INFO] [stdout] | [INFO] [stdout] 389 | let (configuration, unparsed) = parse_result.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dur` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:84:40 [INFO] [stdout] | [INFO] [stdout] 84 | fn new(tx: Sender, dur: Duration) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dur` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recursive_mode` [INFO] [stdout] --> src/file_watcher/my_watcher.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | recursive_mode: RecursiveMode, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recursive_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file_watcher/my_watcher.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut v = &mut *self.files_to_watch.lock().unwrap(); [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/file_watcher/my_watcher.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut v = &mut *self.files_to_watch.lock().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/file_watcher/mod.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `autocopier` (bin "autocopier") due to 4 previous errors; 57 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/main.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | let (mut configuration, unparsed) = match parse_configuration(configuration_file, step_in_chain) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | let (mut configuration, unparsed) = match parse_configuration(configuration_file, step_in_chain) [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `autocopier` (bin "autocopier" test) due to 4 previous errors; 61 warnings emitted [INFO] running `Command { std: "docker" "inspect" "743cbc54757083f03fd0ce2d7daa60c6e9bee07c0ce2b1778030d5a4fe378205", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "743cbc54757083f03fd0ce2d7daa60c6e9bee07c0ce2b1778030d5a4fe378205", kill_on_drop: false }` [INFO] [stdout] 743cbc54757083f03fd0ce2d7daa60c6e9bee07c0ce2b1778030d5a4fe378205