From 6b72382e355807b7b309bbc21d18dc8defd12cec Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 9 Jul 2024 19:02:01 -0400 Subject: Rust API : Fix misc clippy warnings --- rust/src/debuginfo.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rust/src/debuginfo.rs') diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs index 68c666e8..2b43c9cc 100644 --- a/rust/src/debuginfo.rs +++ b/rust/src/debuginfo.rs @@ -342,6 +342,7 @@ impl From<&BNDebugFunctionInfo> for DebugFunctionInfo { } impl DebugFunctionInfo { + #[allow(clippy::too_many_arguments)] pub fn new( short_name: Option, full_name: Option, @@ -357,10 +358,7 @@ impl DebugFunctionInfo { full_name, raw_name, type_, - address: match address { - Some(address) => address, - _ => 0, - }, + address: address.unwrap_or(0), platform, components, local_variables, -- cgit v1.3.1