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/tests | |
parent | 0ed31f936748394962cbd6cfa93be6a1ecc93940 (diff) |
openpgp: Rename PacketParserBuilder::finalize to build.
- Writers should be finalized, builders should be built.
Diffstat (limited to 'openpgp/tests')
-rw-r--r-- | openpgp/tests/for-each-artifact.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/tests/for-each-artifact.rs b/openpgp/tests/for-each-artifact.rs index 128fe8e4..b45364ea 100644 --- a/openpgp/tests/for-each-artifact.rs +++ b/openpgp/tests/for-each-artifact.rs @@ -170,7 +170,7 @@ fn for_all_packets<F>(src: &Path, mut fun: F) -> openpgp::Result<()> where F: FnMut(&openpgp::Packet) -> openpgp::Result<()> { let ppb = PacketParserBuilder::from_file(src)?.buffer_unread_content(); - let mut ppr = if let Ok(ppr) = ppb.finalize() { + let mut ppr = if let Ok(ppr) = ppb.build() { ppr } else { // Ignore junk. |