summaryrefslogtreecommitdiff
path: root/rust/src/relocation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/relocation.rs')
-rw-r--r--rust/src/relocation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/relocation.rs b/rust/src/relocation.rs
index b794f698..756c76bf 100644
--- a/rust/src/relocation.rs
+++ b/rust/src/relocation.rs
@@ -1,6 +1,6 @@
use crate::low_level_il::RegularLowLevelILFunction;
use crate::rc::Guard;
-use crate::string::AsCStr;
+use crate::string::IntoCStr;
use crate::{
architecture::CoreArchitecture,
binary_view::BinaryView,
@@ -404,7 +404,7 @@ unsafe impl RefCountable for CoreRelocationHandler {
pub(crate) fn register_relocation_handler<S, R, F>(arch: &CoreArchitecture, name: S, func: F)
where
- S: AsCStr,
+ S: IntoCStr,
R: 'static + RelocationHandler<Handle = CustomRelocationHandlerHandle<R>> + Send + Sync + Sized,
F: FnOnce(CustomRelocationHandlerHandle<R>, CoreRelocationHandler) -> R,
{