summaryrefslogtreecommitdiff
path: root/rust/src/external_library.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-05 13:17:30 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit9dadf92c16da5cd21def79ae39ca98803c9208ec (patch)
tree3874a659bcb3818f43c1a46ab3ef081b99b47154 /rust/src/external_library.rs
parent9f5491a56f6af1fa9b030f23d40150673a52aaa1 (diff)
[Rust] Rename `AsCStr` to `IntoCStr`
Diffstat (limited to 'rust/src/external_library.rs')
-rw-r--r--rust/src/external_library.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/external_library.rs b/rust/src/external_library.rs
index 57848a7a..4f6e0e84 100644
--- a/rust/src/external_library.rs
+++ b/rust/src/external_library.rs
@@ -1,6 +1,6 @@
use crate::project::file::ProjectFile;
use crate::rc::{CoreArrayProvider, CoreArrayProviderInner, Guard, Ref, RefCountable};
-use crate::string::{AsCStr, BnString};
+use crate::string::{BnString, IntoCStr};
use crate::symbol::Symbol;
use binaryninjacore_sys::*;
use std::fmt::Debug;
@@ -166,7 +166,7 @@ impl ExternalLocation {
/// Set the symbol pointed to by this ExternalLocation.
/// ExternalLocations must have a valid target address and/or symbol set.
- pub fn set_target_symbol<S: AsCStr>(&self, symbol: Option<S>) -> bool {
+ pub fn set_target_symbol<S: IntoCStr>(&self, symbol: Option<S>) -> bool {
match symbol {
Some(sym) => {
let raw_sym = sym.to_cstr();