Skip to content

chore(deps): bump tempfile from 3.19.0 to 3.19.1 (#25) #194

chore(deps): bump tempfile from 3.19.0 to 3.19.1 (#25)

chore(deps): bump tempfile from 3.19.0 to 3.19.1 (#25) #194

GitHub Actions / Clippy: Rust Stable 1.85.1 (4eb161250 2025-03-15) in succeeded Mar 20, 2025 in 15s

Clippy (Stable ~ macOS/ARM64)

Clippy was successful!

Details

Running cargo clippy took roughly ~14699ms to complete

  • Working Directory: repository directory

Annotations

Check warning on line 48 in /Users/runner/work/envfetch/envfetch/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.85.1 (4eb161250 2025-03-15) in

/Users/runner/work/envfetch/envfetch/src/main.rs#L48

called `expect` on `config` after checking its variant with `is_none`
Raw output
warning: called `expect` on `config` after checking its variant with `is_none`
  --> src/commands.rs:48:29
   |
44 |             let opt = if opt.format.is_some() || config.is_none() {
   |                                                  ---------------- the check is happening here
...
48 |                     format: config.expect("Here we know that it is some").print_format,
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try using `if let` or `match`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
   = note: `#[warn(clippy::unnecessary_unwrap)]` on by default