summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2022-05-06 12:36:21 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2022-05-06 12:46:26 +0200
commit11409fe1b5cdf50ddb2aa936702ae3f170f6c50b (patch)
treeca543bcf5d11072d7a5156fd941bf09b28cf401f /autocrypt
parent06ab50b50082862c5316a7951ef9b860eef48018 (diff)
autocrypt, net: openpgp: Rewrite all usages of `Reader::new`.
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs
index fb76df9f..e50dfd2b 100644
--- a/autocrypt/src/lib.rs
+++ b/autocrypt/src/lib.rs
@@ -555,7 +555,7 @@ impl AutocryptSetupMessage {
-> Result<AutocryptSetupMessageParser<'a>> {
// The outer message uses ASCII-armor. It includes a password
// hint. Hence, we need to parse it aggressively.
- let mut r = armor::Reader::new(
+ let mut r = armor::Reader::from_reader(
r, armor::ReaderMode::Tolerant(Some(armor::Kind::Message)));
// Note, it is essential that we call r.headers here so that
@@ -735,7 +735,7 @@ impl<'a> AutocryptSetupMessageParser<'a> {
// The inner message consists of an ASCII-armored encoded
// Cert.
let (prefer_encrypt, cert) = {
- let mut r = armor::Reader::new(
+ let mut r = armor::Reader::from_reader(
&mut pp,
armor::ReaderMode::Tolerant(
Some(armor::Kind::SecretKey)));