summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/literal.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/packet/literal.rs
parent0ed31f936748394962cbd6cfa93be6a1ecc93940 (diff)
openpgp: Rename PacketParserBuilder::finalize to build.
- Writers should be finalized, builders should be built.
Diffstat (limited to 'openpgp/src/packet/literal.rs')
-rw-r--r--openpgp/src/packet/literal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/literal.rs b/openpgp/src/packet/literal.rs
index bc95ba8d..46e6bfb0 100644
--- a/openpgp/src/packet/literal.rs
+++ b/openpgp/src/packet/literal.rs
@@ -220,7 +220,7 @@ mod tests {
if buffer_unread_content {
b = b.buffer_unread_content();
}
- let mut pp = b.finalize()?.unwrap();
+ let mut pp = b.build()?.unwrap();
let d = pp.steal(read_n)?;
d.into_iter().for_each(|b| assert_eq!(b, 0));
let l = pp.finish()?;