summaryrefslogtreecommitdiff
path: root/rust/src/binary_view.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-12-04 15:10:40 -0500
committerMason Reed <mason@vector35.com>2025-12-05 12:26:29 -0500
commit6546844ca4274cd11ec2c91da7c6d7b5e8a82d0b (patch)
tree7341b815993247cba9df7ea95585ce9723510fa0 /rust/src/binary_view.rs
parent6eb12c3c3f53079a822881bf6e197105b25a0fe3 (diff)
[Rust] Fix misc clippy lints and warnings
These are introduced after changing to Rust 1.91.1
Diffstat (limited to 'rust/src/binary_view.rs')
-rw-r--r--rust/src/binary_view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs
index 0f2deb56..4b55e321 100644
--- a/rust/src/binary_view.rs
+++ b/rust/src/binary_view.rs
@@ -1392,7 +1392,7 @@ pub trait BinaryViewExt: BinaryViewBase {
for address in addresses {
let funcs = self.functions_at(address);
for func in funcs.into_iter() {
- if func.start() == address && plat.map_or(true, |p| p == func.platform().as_ref()) {
+ if func.start() == address && plat.is_none_or(|p| p == func.platform().as_ref()) {
functions.push(func.clone());
}
}