diff options
| author | Ryan Snyder <ryan@vector35.com> | 2024-05-01 09:03:00 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2024-05-01 09:03:00 -0400 |
| commit | 44b051965083e087a098a89c88b6316ef3f95032 (patch) | |
| tree | d5a24e820f7e841f48aa84bbc4d7621022e6c36d /rust/src | |
| parent | 96c1336e5842dffb62c481dfb22745e7c4c92dd7 (diff) | |
| parent | 79d8d14eb32a9b1766eb546d3791580dfee7278f (diff) | |
Merge branch 'fix-into-raw-2' of github.com:rbran/binaryninja-api into dev
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/architecture.rs | 4 | ||||
| -rw-r--r-- | rust/src/types.rs | 9 |
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 { |
