[INFO] cloning repository https://github.com/SirYuxuan/seeyon_v5_deploy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SirYuxuan/seeyon_v5_deploy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirYuxuan%2Fseeyon_v5_deploy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirYuxuan%2Fseeyon_v5_deploy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11402620e56d4cd128f3c4f4286677bf9e6735cb [INFO] linting SirYuxuan/seeyon_v5_deploy against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirYuxuan%2Fseeyon_v5_deploy" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SirYuxuan/seeyon_v5_deploy [INFO] finished tweaking git repo https://github.com/SirYuxuan/seeyon_v5_deploy [INFO] tweaked toml for git repo https://github.com/SirYuxuan/seeyon_v5_deploy written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SirYuxuan/seeyon_v5_deploy on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SirYuxuan/seeyon_v5_deploy 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f30a5bac207986e7469cf744d1676573010fc24c15c98012a58e7fe1c6c008c5 [INFO] running `Command { std: "docker" "start" "-a" "f30a5bac207986e7469cf744d1676573010fc24c15c98012a58e7fe1c6c008c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f30a5bac207986e7469cf744d1676573010fc24c15c98012a58e7fe1c6c008c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f30a5bac207986e7469cf744d1676573010fc24c15c98012a58e7fe1c6c008c5", kill_on_drop: false }` [INFO] [stdout] f30a5bac207986e7469cf744d1676573010fc24c15c98012a58e7fe1c6c008c5 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccc252946784401583ead104fe23f7979566918f1848b074482a748a4cf89e5e [INFO] running `Command { std: "docker" "start" "-a" "ccc252946784401583ead104fe23f7979566918f1848b074482a748a4cf89e5e", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking indexmap v2.11.1 [INFO] [stderr] Checking filetime v0.2.26 [INFO] [stderr] Checking clap_builder v4.5.47 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libssh2-sys v0.3.1 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking xattr v1.5.1 [INFO] [stderr] Checking tar v0.4.44 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking clap v4.5.47 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking ssh2 v0.9.5 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking deploy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | use md5; [INFO] [stdout] | ^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | use md5; [INFO] [stdout] | ^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `startup_cmd` and `showlog_cmd` are never read [INFO] [stdout] --> src/config.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub startup_cmd: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | /// 可选的查看日志脚本命令 [INFO] [stdout] 17 | pub showlog_cmd: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exec` is never used [INFO] [stdout] --> src/ssh_client.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn exec(session: &Session, cmd: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `startup_cmd` and `showlog_cmd` are never read [INFO] [stdout] --> src/config.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub startup_cmd: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | /// 可选的查看日志脚本命令 [INFO] [stdout] 17 | pub showlog_cmd: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exec` is never used [INFO] [stdout] --> src/ssh_client.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn exec(session: &Session, cmd: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/config.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / if let Ok(exe_path) = std::env::current_exe() { [INFO] [stdout] 60 | | if let Some(exe_dir) = exe_path.parent() { [INFO] [stdout] 61 | | let config_path = exe_dir.join("deploy.toml"); [INFO] [stdout] 62 | | if config_path.exists() { [INFO] [stdout] ... | [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 59 ~ if let Ok(exe_path) = std::env::current_exe() [INFO] [stdout] 60 ~ && let Some(exe_dir) = exe_path.parent() { [INFO] [stdout] 61 | let config_path = exe_dir.join("deploy.toml"); [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] 65 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/config.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / if let Ok(exe_path) = std::env::current_exe() { [INFO] [stdout] 60 | | if let Some(exe_dir) = exe_path.parent() { [INFO] [stdout] 61 | | let config_path = exe_dir.join("deploy.toml"); [INFO] [stdout] 62 | | if config_path.exists() { [INFO] [stdout] ... | [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 59 ~ if let Ok(exe_path) = std::env::current_exe() [INFO] [stdout] 60 ~ && let Some(exe_dir) = exe_path.parent() { [INFO] [stdout] 61 | let config_path = exe_dir.join("deploy.toml"); [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] 65 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | if !fs::metadata(&source_file).is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `fs::metadata(&source_file).is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | / if let Some(cmd) = cfg.shutdown_cmd.as_ref() { [INFO] [stdout] 70 | | if !cmd.trim().is_empty() { [INFO] [stdout] 71 | | let run = format!("sh {}", cmd); [INFO] [stdout] 72 | | if let Err(e) = ssh_client::exec_stream(&sess, &run) { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 69 ~ if let Some(cmd) = cfg.shutdown_cmd.as_ref() [INFO] [stdout] 70 ~ && !cmd.trim().is_empty() { [INFO] [stdout] 71 | let run = format!("sh {}", cmd); [INFO] [stdout] ... [INFO] [stdout] 76 | info!("已执行关停脚本: {}", cmd); [INFO] [stdout] 77 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | / if !path.contains("/temp/") && !path.ends_with("md5_cache.json") { [INFO] [stdout] 111 | | if let Ok(content) = fs::read(&path) { [INFO] [stdout] 112 | | let digest = format!("{:x}", md5::compute(&content)); [INFO] [stdout] 113 | | current_md5.insert(path, digest); [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 110 ~ if !path.contains("/temp/") && !path.ends_with("md5_cache.json") [INFO] [stdout] 111 ~ && let Ok(content) = fs::read(&path) { [INFO] [stdout] 112 | let digest = format!("{:x}", md5::compute(&content)); [INFO] [stdout] 113 | current_md5.insert(path, digest); [INFO] [stdout] 114 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | / if let Ok(json) = serde_json::to_string(¤t_md5) { [INFO] [stdout] 153 | | if let Err(e) = fs::write(&cache_file, json) { [INFO] [stdout] 154 | | eprintln!("保存MD5缓存失败: {}", e); [INFO] [stdout] 155 | | } [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 152 ~ if let Ok(json) = serde_json::to_string(¤t_md5) [INFO] [stdout] 153 ~ && let Err(e) = fs::write(&cache_file, json) { [INFO] [stdout] 154 | eprintln!("保存MD5缓存失败: {}", e); [INFO] [stdout] 155 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | if !fs::metadata(&source_file).is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `fs::metadata(&source_file).is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | / if let Some(cmd) = cfg.shutdown_cmd.as_ref() { [INFO] [stdout] 70 | | if !cmd.trim().is_empty() { [INFO] [stdout] 71 | | let run = format!("sh {}", cmd); [INFO] [stdout] 72 | | if let Err(e) = ssh_client::exec_stream(&sess, &run) { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 69 ~ if let Some(cmd) = cfg.shutdown_cmd.as_ref() [INFO] [stdout] 70 ~ && !cmd.trim().is_empty() { [INFO] [stdout] 71 | let run = format!("sh {}", cmd); [INFO] [stdout] ... [INFO] [stdout] 76 | info!("已执行关停脚本: {}", cmd); [INFO] [stdout] 77 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | / if !path.contains("/temp/") && !path.ends_with("md5_cache.json") { [INFO] [stdout] 111 | | if let Ok(content) = fs::read(&path) { [INFO] [stdout] 112 | | let digest = format!("{:x}", md5::compute(&content)); [INFO] [stdout] 113 | | current_md5.insert(path, digest); [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 110 ~ if !path.contains("/temp/") && !path.ends_with("md5_cache.json") [INFO] [stdout] 111 ~ && let Ok(content) = fs::read(&path) { [INFO] [stdout] 112 | let digest = format!("{:x}", md5::compute(&content)); [INFO] [stdout] 113 | current_md5.insert(path, digest); [INFO] [stdout] 114 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | / if let Ok(json) = serde_json::to_string(¤t_md5) { [INFO] [stdout] 153 | | if let Err(e) = fs::write(&cache_file, json) { [INFO] [stdout] 154 | | eprintln!("保存MD5缓存失败: {}", e); [INFO] [stdout] 155 | | } [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 152 ~ if let Ok(json) = serde_json::to_string(¤t_md5) [INFO] [stdout] 153 ~ && let Err(e) = fs::write(&cache_file, json) { [INFO] [stdout] 154 | eprintln!("保存MD5缓存失败: {}", e); [INFO] [stdout] 155 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.99s [INFO] running `Command { std: "docker" "inspect" "ccc252946784401583ead104fe23f7979566918f1848b074482a748a4cf89e5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccc252946784401583ead104fe23f7979566918f1848b074482a748a4cf89e5e", kill_on_drop: false }` [INFO] [stdout] ccc252946784401583ead104fe23f7979566918f1848b074482a748a4cf89e5e