diff options
Diffstat (limited to 'src/pattern.rs')
-rw-r--r-- | src/pattern.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pattern.rs b/src/pattern.rs index 6795481..2f7166a 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -50,9 +50,14 @@ impl<O: Serialize> Pattern<O> { &mut frames, //&mut output, ); - let (pack, obj) = vm::Packer::new(interp, MAX_CALLS).deserialize(der)?; + let (mut packs, obj) = vm::Packer::new( + interp, + MAX_CALLS, + ).deserialize(der)?; // this should always be None debug_assert!(obj.is_none()); + debug_assert!(packs.len() == 1); + let pack = packs.pop().unwrap(); let de = De::deserialize(vm::Unpacker::new(pack, MAX_CALLS)); todo!() } |