Skip to content

Commit

Permalink
fix: Clippy warning under rust 1.67
Browse files Browse the repository at this point in the history
error: this could be rewritten as `let...else`
  • Loading branch information
Brian May committed Jan 26, 2023
1 parent c3fa7d2 commit 9585788
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,7 @@ async fn worker_thread(
.await?;
let some_i = rx_response.await?;

let install = match some_i {
Some(i) => i,
None => break,
};
let Some(install) = some_i else { break };

// Update UI
let start = Instant::now();
Expand Down

0 comments on commit 9585788

Please sign in to comment.