summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-09-17 14:15:26 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-09-17 14:15:26 +0200
commite4220d83a084dd05381b3afeb90200e0e50e3204 (patch)
tree4dabe6a538b9d4ee2bac74de0a25809c111f2887 /openpgp/src/parse
parent0227b4e9c87820b01f4bd3f6969ade8e511e637c (diff)
openpgp: Make packet::Common::children private.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/packet_pile_parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/parse/packet_pile_parser.rs b/openpgp/src/parse/packet_pile_parser.rs
index e1525707..36247e2e 100644
--- a/openpgp/src/parse/packet_pile_parser.rs
+++ b/openpgp/src/parse/packet_pile_parser.rs
@@ -146,17 +146,17 @@ impl<'a> PacketPileParser<'a> {
let tmp = container;
let packets_len = tmp.packets.len();
let p = &mut tmp.packets[packets_len - 1];
- if p.children.is_none() {
+ if p.children().next().is_none() {
if i == position - 1 {
// This is the leaf. Create a new container
// here.
- p.children = Some(Container::new());
+ p.set_children(Some(Container::new()));
} else {
panic!("Internal inconsistency while building message.");
}
}
- container = p.children.as_mut().unwrap();
+ container = p.children_mut().unwrap();
}
container.packets.push(packet);