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 /openpgp/tests/for-each-artifact.rs | |
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 'openpgp/tests/for-each-artifact.rs')
-rw-r--r-- | openpgp/tests/for-each-artifact.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/tests/for-each-artifact.rs b/openpgp/tests/for-each-artifact.rs index b45364ea..8f049ef4 100644 --- a/openpgp/tests/for-each-artifact.rs +++ b/openpgp/tests/for-each-artifact.rs @@ -193,8 +193,7 @@ fn for_all_packets<F>(src: &Path, mut fun: F) -> openpgp::Result<()> let mut sink = io::stderr(); let mut w = openpgp::armor::Writer::new( &mut sink, - openpgp::armor::Kind::File, - &[])?; + openpgp::armor::Kind::File)?; packet.serialize(&mut w)?; w.finalize()?; return Err(e); |