diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-20 17:15:08 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-20 18:44:00 +0200 |
commit | bc4e1564ea816a66d1191fc310ac6d2b02d1a92f (patch) | |
tree | 4ee0e4ee0706fa9cedab061fef8cffbc549b0d62 /net | |
parent | 15723e28cc6e18b0ca7a51212bbcd72fb0e40c72 (diff) |
openpgp: Add armor::Writer::with_headers.
- Add a new constructor that takes headers. This allows us to make
the header argument polymorphic.
Diffstat (limited to 'net')
-rw-r--r-- | net/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs index 17c790aa..b339daf9 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -214,8 +214,7 @@ impl KeyServer { Ok(u) => u, }; - let mut w = match Writer::new(Vec::new(), - Kind::PublicKey, &[]) { + let mut w = match Writer::new(Vec::new(), Kind::PublicKey) { Ok(v) => v, Err(e) => return Box::new(future::err(e.into())), }; |