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.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/relocation.rs b/rust/src/relocation.rs
index 756c76bf..2b24279b 100644
--- a/rust/src/relocation.rs
+++ b/rust/src/relocation.rs
@@ -402,9 +402,8 @@ unsafe impl RefCountable for CoreRelocationHandler {
}
}
-pub(crate) fn register_relocation_handler<S, R, F>(arch: &CoreArchitecture, name: S, func: F)
+pub(crate) fn register_relocation_handler<R, F>(arch: &CoreArchitecture, name: &str, func: F)
where
- S: IntoCStr,
R: 'static + RelocationHandler<Handle = CustomRelocationHandlerHandle<R>> + Send + Sync + Sized,
F: FnOnce(CustomRelocationHandlerHandle<R>, CoreRelocationHandler) -> R,
{