Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Dec 13, 2024
1 parent 967c85e commit f4b7bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ impl App {
};

while let Ok((rid, res)) = window.rx.try_recv() {
if window.check_rid.as_ref().map_or(false, |r| rid == r.0) {
if window.check_rid.as_ref().is_some_and(|r| rid == r.0) {
match res {
Ok(()) => {
let window = self.window_provider_parameters.take().unwrap();
Expand Down
4 changes: 1 addition & 3 deletions src/providers/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ inventory::submit! {
re_mod()
.captures(url)
.and_then(|c| c.name("hostname"))
.map_or(false, |h| {
!["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str())
})
.is_some_and(|h| !["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str()))
},
parameters: &[],
}
Expand Down

0 comments on commit f4b7bcd

Please sign in to comment.