summaryrefslogtreecommitdiffstats
path: root/net/src/lib.rs
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 /net/src/lib.rs
parent06ab50b50082862c5316a7951ef9b860eef48018 (diff)
autocrypt, net: openpgp: Rewrite all usages of `Reader::new`.
Diffstat (limited to 'net/src/lib.rs')
-rw-r--r--net/src/lib.rs2
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)),
);