summaryrefslogtreecommitdiff
path: root/rust/src/debuginfo.rs
diff options
context:
space:
mode:
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,