From 8bb4ab351a7a0f371ca758ed82ca50085e6c50fd Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 26 May 2026 15:21:26 -0400 Subject: [Rust] Fix misc clippy lints --- rust/src/function.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'rust/src/function.rs') 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 = 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(&self, values: I, confidence: u8) @@ -1100,7 +1098,7 @@ impl Function { { let locations: Vec = 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( -- cgit v1.3.1