harmonia-clippy-3.2.0
checks.aarch64-darwin.clippy
· build #363
· raw
unpackPhase
1unpacking source archive /nix/store/ymddrp6rx11bbjpaqy6al1hgfvr40vzr-source2source root is sourcepatchPhase
3Executing configureCargoCommonVars4decompressing cargo artifacts from /nix/store/ghgkd4jy080sqpdz7mh779b989gwjpsy-harmonia-deps-3.2.0/target.tar.zst to targetconfigurePhase
5will append /nix/var/nix/builds/nix-55348-1426183388/source/.cargo-home/config.toml with contents of /nix/store/2a1wbxqfgkj4ng9s3ghkw73j4sah48vq-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-55348-1426183388/source/harmonia-utils-base-encoding)11 Checking harmonia-utils-test v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-utils-test)12 Checking harmonia-file-core v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-file-core)13 Checking harmonia-utils-io v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-utils-io)14 Compiling harmonia-protocol-derive v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-protocol-derive)15 Checking harmonia-ssh-store v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-ssh-store)16 Checking harmonia-client v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-client)17 Checking harmonia-utils-hash v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-utils-hash)18 Checking harmonia-utils-signature v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-utils-signature)19 Checking harmonia-file-nar v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-file-nar)20 Checking harmonia-store-path v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-path)21 Checking harmonia-store-content-address v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-content-address)22 Checking harmonia-store-fs v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-fs)23 Checking harmonia-store-ref-scan v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-ref-scan)24 Checking harmonia-bench v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-bench)25 Checking harmonia-store-derivation v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-derivation)26 Checking harmonia-store-path-info v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-path-info)27 Checking harmonia-store-nar-info v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-nar-info)28 Checking harmonia-store-db v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-db)29 Checking harmonia-store-aterm v0.0.0-alpha.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-aterm)30 Checking harmonia-store-build-result v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-build-result)31 Checking harmonia-protocol v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-protocol)32 Checking harmonia-store-gc v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-store-gc)33 Checking harmonia-cache v3.2.0 (/nix/var/nix/builds/nix-55348-1426183388/source/harmonia-cache)34error: this expression creates a reference which is immediately dereferenced by the compiler35 --> harmonia-store-gc/src/gc.rs:186:3636 |37186 | let _gc_lock = acquire_gc_lock(&store.layout.state_dir())?;38 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`39 |40 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow41 = note: `-D clippy::needless-borrow` implied by `-D warnings`42 = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`4344error: this expression creates a reference which is immediately dereferenced by the compiler45 --> harmonia-store-gc/src/gc.rs:201:3746 |47201 | match GcSocketServer::start(&store.layout.state_dir(), live, graph) {48 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`49 |50 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow5152error: this expression creates a reference which is immediately dereferenced by the compiler53 --> harmonia-store-gc/src/gc.rs:225:2554 |55225 | .load_graph(&store.layout.store_dir(), &opts.graph_options)?,56 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.store_dir()`57 |58 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow5960error: this expression creates a reference which is immediately dereferenced by the compiler61 --> harmonia-store-gc/src/gc.rs:260:962 |63260 | &store.layout.state_dir(),64 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`65 |66 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow6768error: this expression creates a reference which is immediately dereferenced by the compiler69 --> harmonia-store-gc/src/gc.rs:276:3170 |71276 | for tr in find_temp_roots(&store.layout.state_dir())? {72 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.state_dir()`73 |74 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow7576error: the borrowed expression implements the required traits77 --> harmonia-store-gc/src/gc.rs:314:3978 |79314 | if let Ok(entries) = fs::read_dir(&store.layout.real_store_dir()) {80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.real_store_dir()`81 |82 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args83 = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`84 = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`8586error: this expression creates a reference which is immediately dereferenced by the compiler87 --> harmonia-store-gc/src/gc.rs:570:4988 |89570 | let bytes_freed = bytes_freed + clean_links(&store.layout.links_dir())?;90 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.links_dir()`91 |92 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow9394error: call to `.clone()` on a reference in this situation does nothing95 --> harmonia-store-gc/src/gc.rs:385:5596 |97385 | let real_store_dir = store.layout.real_store_dir().clone();98 | ^^^^^^^^99 |100 = note: the type `std::path::Path` does not implement `Clone`, so calling `clone` on `&std::path::Path` copies the reference, which does not do anything and can be removed101 = note: `-D noop-method-call` implied by `-D warnings`102 = help: to override `-D warnings` add `#[allow(noop_method_call)]`103help: remove this redundant call104 |105385 - let real_store_dir = store.layout.real_store_dir().clone();106385 + let real_store_dir = store.layout.real_store_dir();107 |108109error: could not compile `harmonia-store-gc` (lib) due to 8 previous errors110warning: build failed, waiting for other jobs to finish...111error: could not compile `harmonia-store-gc` (lib test) due to 8 previous errors