summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-09-17 21:27:49 -0700
committerMark Rowe <mark@vector35.com>2025-09-17 21:28:50 -0700
commit0eebe782656ba2ceaa5a69a50bb3636b8ea33208 (patch)
tree61b826254a0305783467c04a0fe967c9112fc5fd /rust/src/function.rs
parente422737a64a50fb95ca253df8f2fdc355d003280 (diff)
Fix a Rust formatting issue
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 558f8d93..c4061328 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -1697,12 +1697,7 @@ impl Function {
let mut owned_raw_var_ty = Conf::<&Type>::into_raw(var_type.into());
let name = name.to_cstr();
unsafe {
- BNCreateUserStackVariable(
- self.handle,
- offset,
- &mut owned_raw_var_ty,
- name.as_ptr(),
- )
+ BNCreateUserStackVariable(self.handle, offset, &mut owned_raw_var_ty, name.as_ptr())
}
}
@@ -1750,12 +1745,7 @@ impl Function {
let mut owned_raw_var_ty = Conf::<&Type>::into_raw(var_type.into());
let name = name.to_cstr();
unsafe {
- BNCreateAutoStackVariable(
- self.handle,
- offset,
- &mut owned_raw_var_ty,
- name.as_ptr(),
- )
+ BNCreateAutoStackVariable(self.handle, offset, &mut owned_raw_var_ty, name.as_ptr())
}
}