Skip to content

Cache directories are now user-specific

Sign in for the full log view
GitHub Actions / clippy succeeded Sep 26, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check warning on line 43 in tests/cli.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> tests/cli.rs:43:19
   |
43 |         sudo.args(&["-n", "-E"]).arg(cmd.get_program()).args(cmd.get_args());
   |                   ^^^^^^^^^^^^^ help: change this to: `["-n", "-E"]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 1067 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `unwrap_or_else` to construct default value

warning: use of `unwrap_or_else` to construct default value
    --> src/lib.rs:1067:67
     |
1067 |         let user_suffix = user_id().map(|id| format!("-u{}", id)).unwrap_or_else(String::new);
     |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
     = note: `#[warn(clippy::unwrap_or_default)]` on by default