nixbot

builds

succeeded setup checks.x86_64-linux.clippy · build #350 · raw

1this derivation will be built:2 /nix/store/q08fa5njjdwm2cm32hm1m8d6ggry57c6-harmonia-clippy-3.2.0.drv3error: Cannot build '/nix/store/q08fa5njjdwm2cm32hm1m8d6ggry57c6-harmonia-clippy-3.2.0.drv'.4 Reason: builder failed with exit code 101.5 Output paths:6 /nix/store/r55r6rmh9qwbk3zfvn74z5lpv4n62yw9-harmonia-clippy-3.2.07 Last 25 log lines:8 > --> harmonia-store-gc/src/gc.rs:570:499 > |10 > 570 | let bytes_freed = bytes_freed + clean_links(&store.layout.links_dir())?;11 > | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `store.layout.links_dir()`12 > |13 > = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow14 >15 > error: call to `.clone()` on a reference in this situation does nothing16 > --> harmonia-store-gc/src/gc.rs:385:5517 > |18 > 385 | let real_store_dir = store.layout.real_store_dir().clone();19 > | ^^^^^^^^20 > |21 > = 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 removed22 > = note: `-D noop-method-call` implied by `-D warnings`23 > = help: to override `-D warnings` add `#[allow(noop_method_call)]`24 > help: remove this redundant call25 > |26 > 385 - let real_store_dir = store.layout.real_store_dir().clone();27 > 385 + let real_store_dir = store.layout.real_store_dir();28 > |29 >30 > error: could not compile `harmonia-store-gc` (lib) due to 8 previous errors31 > warning: build failed, waiting for other jobs to finish...32 > error: could not compile `harmonia-store-gc` (lib test) due to 8 previous errors33 For full logs, run:34 nix log /nix/store/q08fa5njjdwm2cm32hm1m8d6ggry57c6-harmonia-clippy-3.2.0.drv