Skip to content
GitHub Actions / Clippy Output failed Jun 29, 2023 in 0s

Clippy Output

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.70.0 (90c541806 2023-05-31)
  • cargo 1.70.0 (ec8a8a0ca 2023-04-25)
  • clippy 0.1.70 (90c5418 2023-05-31)

Annotations

Check failure on line 166 in crates/rustic_core/src/commands/prune.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this expression creates a reference which is immediately dereferenced by the compiler

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> crates/rustic_core/src/commands/prune.rs:166:63
    |
166 |             total_size.map(|tpe, size| PackSizer::from_config(&repo.config(), tpe, size));
    |                                                               ^^^^^^^^^^^^^^ help: change this to: `repo.config()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`