Skip to content

Testing

Testing #133

GitHub Actions / Clippy Output succeeded Nov 2, 2023 in 0s

Clippy Output

1 warning

Details

Results

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

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check warning on line 123 in src/package/mod.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

call to `.clone()` on a reference in this situation does nothing

warning: call to `.clone()` on a reference in this situation does nothing
   --> src/package/mod.rs:123:33
    |
123 |                 return Some(path.clone().to_path_buf());
    |                                 ^^^^^^^^ help: remove this redundant call
    |
    = 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 removed
    = note: `#[warn(noop_method_call)]` on by default