diff options
| author | Mason Reed <mason@vector35.com> | 2025-05-05 13:17:30 -0400 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-12 17:45:24 -0400 |
| commit | 9dadf92c16da5cd21def79ae39ca98803c9208ec (patch) | |
| tree | 3874a659bcb3818f43c1a46ab3ef081b99b47154 /rust/src/template_simplifier.rs | |
| parent | 9f5491a56f6af1fa9b030f23d40150673a52aaa1 (diff) | |
[Rust] Rename `AsCStr` to `IntoCStr`
Diffstat (limited to 'rust/src/template_simplifier.rs')
| -rw-r--r-- | rust/src/template_simplifier.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/template_simplifier.rs b/rust/src/template_simplifier.rs index c9e54e72..81f8deb4 100644 --- a/rust/src/template_simplifier.rs +++ b/rust/src/template_simplifier.rs @@ -1,15 +1,15 @@ use crate::{ - string::{AsCStr, BnString}, + string::{BnString, IntoCStr}, types::QualifiedName, }; use binaryninjacore_sys::{BNRustSimplifyStrToFQN, BNRustSimplifyStrToStr}; -pub fn simplify_str_to_str<S: AsCStr>(input: S) -> BnString { +pub fn simplify_str_to_str<S: IntoCStr>(input: S) -> BnString { let name = input.to_cstr(); unsafe { BnString::from_raw(BNRustSimplifyStrToStr(name.as_ptr())) } } -pub fn simplify_str_to_fqn<S: AsCStr>(input: S, simplify: bool) -> QualifiedName { +pub fn simplify_str_to_fqn<S: IntoCStr>(input: S, simplify: bool) -> QualifiedName { let name = input.to_cstr(); unsafe { QualifiedName::from_owned_raw(BNRustSimplifyStrToFQN(name.as_ptr(), simplify)) } } |
