Skip to content

Update actions/cache action to v4 #55

Update actions/cache action to v4

Update actions/cache action to v4 #55

GitHub Actions / clippy succeeded Jan 17, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 18 in src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

matching over `()` is more explicit

warning: matching over `()` is more explicit
  --> src/util.rs:18:16
   |
18 |             Ok(_) => Ok(()),
   |                ^ help: use `()` instead of `_`: `()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
note: the lint level is defined here
  --> src/main.rs:2:9
   |
2  | #![warn(clippy::pedantic, clippy::cargo)] 
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::ignored_unit_patterns)]` implied by `#[warn(clippy::pedantic)]`

Check warning on line 46 in src/util/time.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `list_fuzzy(&timezones, timezone, 1).get(0)`

warning: accessing first element with `list_fuzzy(&timezones, timezone, 1).get(0)`
  --> src/util/time.rs:46:19
   |
46 |         Err(match list_fuzzy(&timezones, timezone, 1).get(0) {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `list_fuzzy(&timezones, timezone, 1).first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default

Check warning on line 245 in src/directory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
   --> src/directory.rs:245:24
    |
245 |             Some(e) if e == "metadata" => (),
    |                        ^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
    = note: `#[warn(clippy::redundant_guards)]` on by default
help: try
    |
245 -             Some(e) if e == "metadata" => (),
245 +             Some("metadata") => (),
    |