Skip to content

Commit

Permalink
Use is_ok_and instead of map_or(false, x)
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl committed Jun 16, 2024
1 parent 474a7cd commit 310acab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fn main() {
id == device.name
|| id == device.pubkey
|| private_to_public_key(&id)
.map_or(false, |pubkey| device.pubkey == pubkey)
.is_ok_and(|pubkey| pubkey == device.pubkey)
}) {
client
.delete(&format!(
Expand Down

0 comments on commit 310acab

Please sign in to comment.