summaryrefslogtreecommitdiff
path: root/rust/src/template_simplifier.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/template_simplifier.rs')
-rw-r--r--rust/src/template_simplifier.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/rust/src/template_simplifier.rs b/rust/src/template_simplifier.rs
index 57d2b0b4..c9e54e72 100644
--- a/rust/src/template_simplifier.rs
+++ b/rust/src/template_simplifier.rs
@@ -6,15 +6,10 @@ use binaryninjacore_sys::{BNRustSimplifyStrToFQN, BNRustSimplifyStrToStr};
pub fn simplify_str_to_str<S: AsCStr>(input: S) -> BnString {
let name = input.to_cstr();
- unsafe { BnString::from_raw(BNRustSimplifyStrToStr(name.as_ref().as_ptr() as *mut _)) }
+ unsafe { BnString::from_raw(BNRustSimplifyStrToStr(name.as_ptr())) }
}
pub fn simplify_str_to_fqn<S: AsCStr>(input: S, simplify: bool) -> QualifiedName {
let name = input.to_cstr();
- unsafe {
- QualifiedName::from_owned_raw(BNRustSimplifyStrToFQN(
- name.as_ref().as_ptr() as *mut _,
- simplify,
- ))
- }
+ unsafe { QualifiedName::from_owned_raw(BNRustSimplifyStrToFQN(name.as_ptr(), simplify)) }
}