summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-08 21:01:42 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit38fa66115c00ead8dcc38ec5c5451d3ce4444ab8 (patch)
treedd398b7bbb99c0eefcfdf559f8efcfcd532c1d25 /rust/src/function.rs
parentc2d90f2e5a010546d0e1f1deeb1a6d8531ea4d4f (diff)
[Rust] Misc cleanup
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index e7e5e9b0..92538384 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -485,12 +485,7 @@ impl Function {
language: &str,
) -> Option<Ref<CoreLanguageRepresentationFunction>> {
let lang_name = language.to_cstr();
- let repr = unsafe {
- BNGetFunctionLanguageRepresentation(
- self.handle,
- lang_name.as_ptr(),
- )
- };
+ let repr = unsafe { BNGetFunctionLanguageRepresentation(self.handle, lang_name.as_ptr()) };
NonNull::new(repr)
.map(|handle| unsafe { CoreLanguageRepresentationFunction::ref_from_raw(handle) })
}
@@ -504,10 +499,7 @@ impl Function {
) -> Option<Ref<CoreLanguageRepresentationFunction>> {
let lang_name = language.to_cstr();
let repr = unsafe {
- BNGetFunctionLanguageRepresentationIfAvailable(
- self.handle,
- lang_name.as_ptr(),
- )
+ BNGetFunctionLanguageRepresentationIfAvailable(self.handle, lang_name.as_ptr())
};
NonNull::new(repr)
.map(|handle| unsafe { CoreLanguageRepresentationFunction::ref_from_raw(handle) })