summaryrefslogtreecommitdiff
path: root/plugins/warp/src/matcher.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-08-26 23:59:38 -0400
committerMason Reed <mason@vector35.com>2025-10-01 21:38:39 -0400
commitede39aee7e00c40a43b67ca18dd8ab80ee863d85 (patch)
tree67c5eda347ece2282e3c888f38066b496e06dec8 /plugins/warp/src/matcher.rs
parenta1c46813e7f279aa4cfdb9dbb91c45b559ebeacd (diff)
[WARP] Enhanced network support
Diffstat (limited to 'plugins/warp/src/matcher.rs')
-rw-r--r--plugins/warp/src/matcher.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/warp/src/matcher.rs b/plugins/warp/src/matcher.rs
index 52a5b04f..d97b4a18 100644
--- a/plugins/warp/src/matcher.rs
+++ b/plugins/warp/src/matcher.rs
@@ -100,21 +100,21 @@ impl Matcher {
// TODO: I would really like for WARP types to be added in a seperate type container, so that we don't
// TODO: just add them as system or user types.
- pub fn add_type_to_view<A: BNArchitecture>(
+ pub fn add_type_to_view<A: BNArchitecture + Copy>(
&self,
container: &dyn Container,
source: &SourceId,
view: &BinaryView,
- arch: &A,
+ arch: A,
ty: &Type,
) where
Self: Sized,
{
- fn inner_add_type_to_view<A: BNArchitecture>(
+ fn inner_add_type_to_view<A: BNArchitecture + Copy>(
container: &dyn Container,
source: &SourceId,
view: &BinaryView,
- arch: &A,
+ arch: A,
visited_refs: &mut HashSet<String>,
ty: &Type,
) {
@@ -251,7 +251,7 @@ impl Matcher {
view.define_auto_type_with_id(
name,
&guid.to_string(),
- &to_bn_type(arch, &ref_ty),
+ &to_bn_type(Some(arch), &ref_ty),
);
}
(Some(_guid), Some(_name), None) => {