diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-05-06 12:36:21 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-05-06 12:46:26 +0200 |
commit | 11409fe1b5cdf50ddb2aa936702ae3f170f6c50b (patch) | |
tree | ca543bcf5d11072d7a5156fd941bf09b28cf401f /net/src/lib.rs | |
parent | 06ab50b50082862c5316a7951ef9b860eef48018 (diff) |
autocrypt, net: openpgp: Rewrite all usages of `Reader::new`.
Diffstat (limited to 'net/src/lib.rs')
-rw-r--r-- | net/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs index 2a45fbd8..5d8ef078 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -249,7 +249,7 @@ impl KeyServer { match res.status() { StatusCode::OK => { let body = hyper::body::to_bytes(res.into_body()).await?; - let r = armor::Reader::new( + let r = armor::Reader::from_reader( Cursor::new(body), armor::ReaderMode::Tolerant(Some(armor::Kind::PublicKey)), ); |