diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-11-03 22:27:25 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-11-10 12:10:20 +0100 |
commit | 1dfa3f2c03895c72e447164703b140262d5b630a (patch) | |
tree | c289c45734fba4ae16b664f2d350a1662d205650 /sop | |
parent | ee149e41039d835599701a386aa85571d23ee543 (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 'sop')
-rw-r--r-- | sop/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sop/src/main.rs b/sop/src/main.rs index 7a53811f..22dbeec7 100644 --- a/sop/src/main.rs +++ b/sop/src/main.rs @@ -313,7 +313,7 @@ fn real_main() -> Result<()> { .context("Failed to create encryptor")?; // Pad the message. - let mut message = Padder::new(message, padme)?; + let mut message = Padder::new(message, padme).build()?; // Maybe sign the message. if let Some(s) = signers.pop() { |