summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/packet_pile_parser.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-09 12:56:52 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-09 16:43:26 +0200
commitdbaf698a597a018d9522e8025e9b56e784f0d60b (patch)
tree9ff2a96e0083ce8870e3e053d2d1c5fc6165d832 /openpgp/src/parse/packet_pile_parser.rs
parent0ed31f936748394962cbd6cfa93be6a1ecc93940 (diff)
openpgp: Rename PacketParserBuilder::finalize to build.
- Writers should be finalized, builders should be built.
Diffstat (limited to 'openpgp/src/parse/packet_pile_parser.rs')
-rw-r--r--openpgp/src/parse/packet_pile_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/packet_pile_parser.rs b/openpgp/src/parse/packet_pile_parser.rs
index 201654ed..9c568a25 100644
--- a/openpgp/src/parse/packet_pile_parser.rs
+++ b/openpgp/src/parse/packet_pile_parser.rs
@@ -72,7 +72,7 @@ impl<'a> TryFrom<PacketParserBuilder<'a>> for PacketPileParser<'a> {
/// Finishes configuring the `PacketParser` and returns a
/// `PacketPileParser`.
fn try_from(ppb: PacketParserBuilder<'a>) -> Result<PacketPileParser<'a>> {
- Self::from_packet_parser(ppb.finalize()?)
+ Self::from_packet_parser(ppb.build()?)
}
}