adjustments on capabilities on cartridges
This commit is contained in:
@@ -18,9 +18,13 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::VirtualMachine;
|
||||
|
||||
struct CollectVisitor { pub seen: Vec<HeapRef> }
|
||||
struct CollectVisitor {
|
||||
pub seen: Vec<HeapRef>,
|
||||
}
|
||||
impl RootVisitor for CollectVisitor {
|
||||
fn visit_heap_ref(&mut self, r: HeapRef) { self.seen.push(r); }
|
||||
fn visit_heap_ref(&mut self, r: HeapRef) {
|
||||
self.seen.push(r);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user