diff options
| author | Mason Reed <mason@vector35.com> | 2026-05-26 15:21:26 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2026-05-26 15:23:21 -0400 |
| commit | 8bb4ab351a7a0f371ca758ed82ca50085e6c50fd (patch) | |
| tree | d34732d71ea0c72eaa7cc67e9d39599cc2891fcd /rust/src/function.rs | |
| parent | 39201debeaf9440349f56612bfbc80bc352c4de7 (diff) | |
[Rust] Fix misc clippy lints
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index dcfe9900..9806a5ca 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -1077,7 +1077,7 @@ impl Function { { let locations: Vec<BNValueLocation> = values .into_iter() - .map(|location| ValueLocation::into_rust_raw(&location.into())) + .map(|location| ValueLocation::into_rust_raw(&location)) .collect(); unsafe { BNSetUserFunctionParameterLocations( @@ -1089,9 +1089,7 @@ impl Function { }, ) } - locations - .into_iter() - .for_each(|location| ValueLocation::free_rust_raw(location.into())); + locations.into_iter().for_each(ValueLocation::free_rust_raw); } pub fn set_auto_parameter_locations<I>(&self, values: I, confidence: u8) @@ -1100,7 +1098,7 @@ impl Function { { let locations: Vec<BNValueLocation> = values .into_iter() - .map(|location| ValueLocation::into_rust_raw(&location.into())) + .map(|location| ValueLocation::into_rust_raw(&location)) .collect(); unsafe { BNSetAutoFunctionParameterLocations( @@ -1112,9 +1110,7 @@ impl Function { }, ) } - locations - .into_iter() - .for_each(|location| ValueLocation::free_rust_raw(location.into())); + locations.into_iter().for_each(ValueLocation::free_rust_raw); } pub fn parameter_at( |
