diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-19 17:37:23 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-20 18:04:56 +0100 |
commit | cf103b49bbaf37783e7d761d3eb06366d9692b89 (patch) | |
tree | c3506d0b0af91eb0803500c8108dbfe14a6c9e0c /openpgp/src/message/mod.rs | |
parent | cfdc2c0a51ca5bcb30683d37b3983c6589799a20 (diff) |
openpgp: Trim set of container functions and reduce visibility.
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 ]); |