harmonia-clippy-3.2.0
checks.aarch64-darwin.clippy
· build #200
· raw
unpackPhase
1unpacking source archive /nix/store/d9vh1n2z9vj6l30zkn9fra2b2nahsx74-source2source root is sourcepatchPhase
3Executing configureCargoCommonVars4decompressing cargo artifacts from /nix/store/l74mpch5114ymr4bm4jwl0mhkcznsa7z-harmonia-deps-3.2.0/target.tar.zst to targetconfigurePhase
5will append /nix/var/nix/builds/nix-54997-1351178268/source/.cargo-home/config.toml with contents of /nix/store/qjg53k4k33ncxb09xr563z7fwgc8pzcd-vendor-cargo-deps/config.toml6default configurePhase, nothing to dobuildPhase
7+++ command cargo --version8cargo 1.97.0 (c980f4866 2026-06-30)9+++ command cargo clippy --release --locked --all-targets --all-features -- -D warnings10 Checking harmonia-utils-base-encoding v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-utils-base-encoding)11 Checking harmonia-utils-test v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-utils-test)12 Checking harmonia-file-core v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-file-core)13 Checking harmonia-utils-io v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-utils-io)14 Compiling harmonia-protocol-derive v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-protocol-derive)15 Checking harmonia-ssh-store v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-ssh-store)16 Checking harmonia-client v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-client)17 Checking harmonia-utils-hash v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-utils-hash)18 Checking harmonia-utils-signature v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-utils-signature)19 Checking harmonia-file-nar v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-file-nar)20 Checking harmonia-store-path v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-path)21 Checking harmonia-store-content-address v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-content-address)22 Checking harmonia-store-ref-scan v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-ref-scan)23 Checking harmonia-bench v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-bench)24 Checking harmonia-store-derivation v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-derivation)25 Checking harmonia-store-path-info v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-path-info)26 Checking harmonia-store-nar-info v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-nar-info)27 Checking harmonia-store-db v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-db)28 Checking harmonia-store-aterm v0.0.0-alpha.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-aterm)29 Checking harmonia-store-build-result v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-build-result)30 Checking harmonia-store-gc v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-store-gc)31 Checking harmonia-cache v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-cache)32 Checking harmonia-protocol v3.2.0 (/nix/var/nix/builds/nix-54997-1351178268/source/harmonia-protocol)33error: this `if` statement can be collapsed34 --> harmonia-store-gc/src/roots/runtime_roots.rs:109:535 |36109 | / if n > 0 {37110 | | if let Ok(s) = std::str::from_utf8(&buf[..n as usize]) {38111 | | add_unchecked(store_prefix, s, unchecked);39112 | | }40113 | | }41 | |_____^42 |43 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if44 = note: `-D clippy::collapsible-if` implied by `-D warnings`45 = help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`46help: collapse nested if block47 |48109 ~ if n > 049110 ~ && let Ok(s) = std::str::from_utf8(&buf[..n as usize]) {50111 | add_unchecked(store_prefix, s, unchecked);51112 ~ }52 |5354error: this `if` statement can be collapsed55 --> harmonia-store-gc/src/roots/runtime_roots.rs:187:956 |57187 | / if r > 0 {58188 | | if let Some(p) = extract_cstr_path(&buf) {59189 | | add_unchecked(store_prefix, &p, unchecked);60190 | | }61191 | | }62 | |_________^63 |64 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if65help: collapse nested if block66 |67187 ~ if r > 068188 ~ && let Some(p) = extract_cstr_path(&buf) {69189 | add_unchecked(store_prefix, &p, unchecked);70190 ~ }71 |7273error: can be more succinctly written as a byte str74 --> harmonia-store-gc/src/temp_roots.rs:210:2375 |76210 | if ack != [b'1'] {77 | ^^^^^^ help: try: `*b"1"`78 |79 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices80 = note: `-D clippy::byte-char-slices` implied by `-D warnings`81 = help: to override `-D warnings` add `#[allow(clippy::byte_char_slices)]`8283error: could not compile `harmonia-store-gc` (lib test) due to 3 previous errors84warning: build failed, waiting for other jobs to finish...85error: could not compile `harmonia-store-gc` (lib) due to 3 previous errors