summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-11-03 22:27:25 +0100
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-11-10 12:10:20 +0100
commit1dfa3f2c03895c72e447164703b140262d5b630a (patch)
treec289c45734fba4ae16b664f2d350a1662d205650 /sq
parentee149e41039d835599701a386aa85571d23ee543 (diff)
openpgp: Make stream::Padder use the builder pattern.
- Split Padder::new() into new and build. - Adjust code in dependent projects (sop and sq). - Fixes #600.
Diffstat (limited to 'sq')
-rw-r--r--sq/src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/sq/src/commands/mod.rs b/sq/src/commands/mod.rs
index fbf96657..8b542c66 100644
--- a/sq/src/commands/mod.rs
+++ b/sq/src/commands/mod.rs
@@ -130,7 +130,7 @@ pub fn encrypt<'a>(policy: &'a dyn Policy,
match compression {
"none" => (),
- "pad" => sink = Padder::new(sink, padme)?,
+ "pad" => sink = Padder::new(sink, padme).build()?,
"zip" => sink =
Compressor::new(sink).algo(CompressionAlgorithm::Zip).build()?,
"zlib" => sink =