summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/architecture.rs4
-rw-r--r--rust/src/types.rs9
2 files changed, 2 insertions, 11 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs
index b2413d39..cb71a9cd 100644
--- a/rust/src/architecture.rs
+++ b/rust/src/architecture.rs
@@ -2473,8 +2473,8 @@ where
if let Some(intrinsic) = custom_arch.intrinsic_from_id(intrinsic) {
let inputs = intrinsic.outputs();
let mut res = Vec::with_capacity(inputs.len());
- for input in inputs {
- res.push(input.into());
+ for input in inputs.iter() {
+ res.push(input.as_ref().into());
}
unsafe {
diff --git a/rust/src/types.rs b/rust/src/types.rs
index a5f2ca93..dae8a6cc 100644
--- a/rust/src/types.rs
+++ b/rust/src/types.rs
@@ -261,15 +261,6 @@ impl From<BNOffsetWithConfidence> for Conf<i64> {
}
}
-impl From<Conf<Ref<Type>>> for BNTypeWithConfidence {
- fn from(conf: Conf<Ref<Type>>) -> Self {
- Self {
- type_: conf.contents.handle,
- confidence: conf.confidence,
- }
- }
-}
-
impl From<Conf<&Type>> for BNTypeWithConfidence {
fn from(conf: Conf<&Type>) -> Self {
Self {