Fix clippy warnings

This commit is contained in:
Edgar Geier 2023-02-28 19:42:53 +01:00
parent 2b991129e3
commit 6c501c6640
No known key found for this signature in database
GPG key ID: 7A65B51FD6B75EF5
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)
}
}
}