Skip to content

Commit

Permalink
Fix function signature in MockVM
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Feb 19, 2024
1 parent 214c694 commit 7081e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/test_util/mock_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub struct MockVM {
pub post_forwarding: MockMethod<VMWorkerThread, ()>,
pub vm_live_bytes: MockMethod<(), usize>,
pub is_collection_enabled: MockMethod<(), bool>,
pub create_gc_trigger: MockMethod<(), Option<Box<dyn GCTriggerPolicy<MockVM>>>>,
pub create_gc_trigger: MockMethod<(), Box<dyn GCTriggerPolicy<MockVM>>>,
// object model
pub copy_object: MockMethod<
(
Expand Down Expand Up @@ -463,7 +463,7 @@ impl crate::vm::Collection<MockVM> for MockVM {
mock!(vm_live_bytes())
}

fn create_gc_trigger() -> Option<Box<dyn GCTriggerPolicy<MockVM>>> {
fn create_gc_trigger() -> Box<dyn GCTriggerPolicy<MockVM>> {
mock!(create_gc_trigger())
}
}
Expand Down

0 comments on commit 7081e86

Please sign in to comment.