summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/key.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r--tool/src/commands/key.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs
index 688633a8..9e83b49f 100644
--- a/tool/src/commands/key.rs
+++ b/tool/src/commands/key.rs
@@ -158,7 +158,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> Result<()> {
.collect();
let w = create_or_stdout(Some(&key_path), force)?;
- let mut w = Writer::new(w, Kind::SecretKey, &headers)?;
+ let mut w = Writer::with_headers(w, Kind::SecretKey, headers)?;
cert.as_tsk().serialize(&mut w)?;
w.finalize()?;
}
@@ -171,7 +171,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> Result<()> {
headers.insert(0, ("Comment", "Revocation certificate for"));
let w = create_or_stdout(Some(&rev_path), force)?;
- let mut w = Writer::new(w, Kind::Signature, &headers)?;
+ let mut w = Writer::with_headers(w, Kind::Signature, headers)?;
Packet::Signature(rev).serialize(&mut w)?;
w.finalize()?;
}