diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-09 12:56:52 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-09 16:43:26 +0200 |
commit | dbaf698a597a018d9522e8025e9b56e784f0d60b (patch) | |
tree | 9ff2a96e0083ce8870e3e053d2d1c5fc6165d832 /openpgp/src/packet_pile.rs | |
parent | 0ed31f936748394962cbd6cfa93be6a1ecc93940 (diff) |
openpgp: Rename PacketParserBuilder::finalize to build.
- Writers should be finalized, builders should be built.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs index f06e458f..346b666c 100644 --- a/openpgp/src/packet_pile.rs +++ b/openpgp/src/packet_pile.rs @@ -469,7 +469,7 @@ impl<'a> PacketParserBuilder<'a> { /// # } /// ``` pub fn into_packet_pile(self) -> Result<PacketPile> { - PacketPile::try_from(self.finalize()?) + PacketPile::try_from(self.build()?) } } @@ -615,7 +615,7 @@ mod test { = PacketParserBuilder::from_bytes( crate::tests::message("compression-quine.gpg")).unwrap() .max_recursion_depth(max_recursion_depth) - .finalize().unwrap(); + .build().unwrap(); let mut count = 0; loop { @@ -647,7 +647,7 @@ mod test { let ppr = PacketParserBuilder::from_bytes( crate::tests::message("compressed-data-algo-1.gpg")).unwrap() .buffer_unread_content() - .finalize().unwrap(); + .build().unwrap(); let mut pp = ppr.unwrap(); if let Packet::CompressedData(_) = pp.packet { |