From 9dadf92c16da5cd21def79ae39ca98803c9208ec Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 5 May 2025 13:17:30 -0400 Subject: [Rust] Rename `AsCStr` to `IntoCStr` --- rust/src/repository.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/repository.rs') diff --git a/rust/src/repository.rs b/rust/src/repository.rs index 27825b96..8d9a8f40 100644 --- a/rust/src/repository.rs +++ b/rust/src/repository.rs @@ -9,7 +9,7 @@ use binaryninjacore_sys::*; use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Guard, Ref, RefCountable}; use crate::repository::plugin::RepositoryPlugin; -use crate::string::{AsCStr, BnString}; +use crate::string::{BnString, IntoCStr}; pub use manager::RepositoryManager; @@ -52,7 +52,7 @@ impl Repository { unsafe { Array::new(result, count, ()) } } - pub fn plugin_by_path(&self, path: S) -> Option> { + pub fn plugin_by_path(&self, path: S) -> Option> { let path = path.to_cstr(); let result = unsafe { BNRepositoryGetPluginByPath(self.handle.as_ptr(), path.as_ptr()) }; NonNull::new(result).map(|h| unsafe { RepositoryPlugin::ref_from_raw(h) }) -- cgit v1.3.1