summaryrefslogtreecommitdiff
path: root/rust/src/debuginfo.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2024-07-09 19:02:01 -0400
committerKyleMiles <krm504@nyu.edu>2024-07-09 19:02:01 -0400
commit6b72382e355807b7b309bbc21d18dc8defd12cec (patch)
tree03d57f6850c76034f107e4efbcb7b37326fc207b /rust/src/debuginfo.rs
parent1b22f189fc4b26fb383179f378b6d811e7c16083 (diff)
Rust API : Fix misc clippy warnings
Diffstat (limited to 'rust/src/debuginfo.rs')
-rw-r--r--rust/src/debuginfo.rs6
1 files changed, 2 insertions, 4 deletions
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<String>,
full_name: Option<String>,
@@ -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,