diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/key.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index 91b2d941..fbbfcb5e 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -84,7 +84,6 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { // Generate the key let (tpk, rev) = builder.generate()?; - let tsk = tpk.into_tsk(); // Export if m.is_present("export") { @@ -114,7 +113,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { { let w = create_or_stdout(Some(&key_path), force)?; let mut w = Writer::new(w, Kind::SecretKey, &[])?; - tsk.serialize(&mut w)?; + tpk.as_tsk().serialize(&mut w)?; } // write out rev cert |