Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix lint error to use unwrap_or_default() #277

Merged
merged 1 commit into from
Jun 22, 2024
Merged

Conversation

kyu08
Copy link
Owner

@kyu08 kyu08 commented Jun 22, 2024

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)]`

@kyu08 kyu08 merged commit 68e5774 into main Jun 22, 2024
5 checks passed
@kyu08 kyu08 deleted the fix-lint-error branch June 22, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant