docs: move configuration docs to Wiki #215
Annotations
4 warnings
/home/runner/work/envfetch/envfetch/src/main.rs#L48
called `expect` on `config` after checking its variant with `is_none`
|
/Users/runner/work/envfetch/envfetch/src/main.rs#L48
called `expect` on `config` after checking its variant with `is_none`
|
lint (ubuntu-latest):
src/main.rs#L48
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
|
lint (macOS-latest):
src/main.rs#L48
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
|