swellaby / rusty-hook

git hook manager, geared toward Rust projects
MIT License
206 stars 11 forks source link

Fix clippy warnings #145

Closed calebcartwright closed 2 years ago

calebcartwright commented 3 years ago

:upside_down_face:

error: this pattern reimplements `Option::unwrap_or`
   --> src/config.rs:148:22
    |
148 |           Ok(value) => match value.as_bool() {
    |  ______________________^
149 | |             Some(setting) => setting,
150 | |             None => true,
151 | |         },
    | |_________^ help: replace with: `value.as_bool().unwrap_or(true)`
    |
    = note: `-D clippy::manual-unwrap-or` implied by `-D warnings`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or