Skip to content

docs: move configuration docs to Wiki #215

docs: move configuration docs to Wiki

docs: move configuration docs to Wiki #215

GitHub Actions / Clippy: Rust Stable 1.85.0 (4d91de4e4 2025-02-17) in succeeded Mar 18, 2025 in 17s

Clippy (Stable ~ Linux/x86_64)

Clippy was successful!

Details

Running cargo clippy took roughly ~17080ms to complete

  • Working Directory: repository directory

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.85.0 (4d91de4e4 2025-02-17) in

/home/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