Merge pull request #88 from geieredgar/clippy-fixes

Fix clippy warnings
This commit is contained in:
Jeremy Soller 2023-03-02 14:53:08 -07:00 committed by GitHub
commit bd27ca8ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 80 additions and 59 deletions

View file

@ -131,9 +131,8 @@ fn main() {
redraw(&mut window, &mut editor, &mut swash_cache);
for event in window.events() {
match event.to_option() {
EventOption::Quit(_) => process::exit(1),
_ => (),
if let EventOption::Quit(_) = event.to_option() {
process::exit(1)
}
}
}