Closed kyu08 closed 3 months ago
Fixed this error from clippy.
error: match can be simplified with `.unwrap_or_default()` --> src/usecase/fzf_make/ui.rs:196:13 | [196](https://github.com/kyu08/fzf-make/actions/runs/9626356023/job/26552236621#step:3:197) | let h = match model.get_history() { | _____________^ [197](https://github.com/kyu08/fzf-make/actions/runs/9626356023/job/26552236621#step:3:198) | | Some(h) => h, 198 | | None => vec![], [199](https://github.com/kyu08/fzf-make/actions/runs/9626356023/job/26552236621#step:3:200) | | }; | |_____^ help: replace it with: `model.get_history().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `-D clippy::manual-unwrap-or-default` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::manual_unwrap_or_default)]`
Fixed this error from clippy.