diff options
Diffstat (limited to 'plugins/warp/tests')
| -rw-r--r-- | plugins/warp/tests/determinism.rs | 4 | ||||
| -rw-r--r-- | plugins/warp/tests/matcher.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/warp/tests/determinism.rs b/plugins/warp/tests/determinism.rs index e0568794..5100b436 100644 --- a/plugins/warp/tests/determinism.rs +++ b/plugins/warp/tests/determinism.rs @@ -32,8 +32,8 @@ fn insta_signatures() { .functions() .iter() .map(|f| { - let guid = cached_function_guid(&f, &f.lifted_il().unwrap()); - (f.start(), guid) + let guid = cached_function_guid(&f, || f.lifted_il().ok()); + (f.start(), guid.unwrap()) }) .collect(); insta::assert_debug_snapshot!(file_name, functions); diff --git a/plugins/warp/tests/matcher.rs b/plugins/warp/tests/matcher.rs index 13e2ce01..880112d0 100644 --- a/plugins/warp/tests/matcher.rs +++ b/plugins/warp/tests/matcher.rs @@ -169,7 +169,7 @@ fn test_add_type_to_view() { .guid(struct_type_guid) .build(); let ref_type = Type::builder().name("my_ref").class(ref_class).build(); - matcher.add_type_to_view(&container, &source, &view, &arch, &ref_type); + matcher.add_type_to_view(&container, &source, &view, arch, &ref_type); println!("{:#?}", view.types().to_vec()); |
