From 38fa66115c00ead8dcc38ec5c5451d3ce4444ab8 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 8 May 2025 21:01:42 -0400 Subject: [Rust] Misc cleanup --- rust/src/function.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'rust/src/function.rs') 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> { 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> { 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) }) -- cgit v1.3.1