diff options
Diffstat (limited to 'openpgp/src/message/mod.rs')
-rw-r--r-- | openpgp/src/message/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index 9592a703..b08de710 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -997,9 +997,9 @@ mod tests { // 1: MDC // => good. let mut seip = SEIP1::new(); - seip.container_mut().push( + seip.children_mut().push( lit.clone().into()); - seip.container_mut().push( + seip.children_mut().push( MDC::from([0u8; 20]).into()); packets[1] = seip.into(); @@ -1079,7 +1079,8 @@ mod tests { // 2: Literal // => bad. packets.remove(3); - packets[2].container_mut().unwrap().push(lit.clone().into()); + packets[2].container_mut().unwrap() + .children_mut().push(lit.clone().into()); assert!(packets.iter().map(|p| p.tag()).collect::<Vec<Tag>>() == [ Tag::SKESK, Tag::SKESK, Tag::SEIP ]); |