diff options
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 12 |
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) }) |
