From 6546844ca4274cd11ec2c91da7c6d7b5e8a82d0b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 4 Dec 2025 15:10:40 -0500 Subject: [Rust] Fix misc clippy lints and warnings These are introduced after changing to Rust 1.91.1 --- rust/src/binary_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/binary_view.rs') 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()); } } -- cgit v1.3.1