diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-07-09 19:02:01 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-07-09 19:02:01 -0400 |
| commit | 6b72382e355807b7b309bbc21d18dc8defd12cec (patch) | |
| tree | 03d57f6850c76034f107e4efbcb7b37326fc207b /rust/src/debuginfo.rs | |
| parent | 1b22f189fc4b26fb383179f378b6d811e7c16083 (diff) | |
Rust API : Fix misc clippy warnings
Diffstat (limited to 'rust/src/debuginfo.rs')
| -rw-r--r-- | rust/src/debuginfo.rs | 6 |
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, |
