diff options
Diffstat (limited to 'openpgp/src/autocrypt.rs')
-rw-r--r-- | openpgp/src/autocrypt.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/src/autocrypt.rs b/openpgp/src/autocrypt.rs index 38567743..3353bbf7 100644 --- a/openpgp/src/autocrypt.rs +++ b/openpgp/src/autocrypt.rs @@ -486,9 +486,7 @@ impl AutocryptSetupMessage { &[ (&"Autocrypt-Prefer-Encrypt"[..], self.prefer_encrypt().unwrap_or(&"nopreference"[..])) ])?; - // XXX - let tsk = self.tpk.clone().into_tsk(); - tsk.serialize(&mut w)?; + self.tpk.as_tsk().serialize(&mut w)?; Ok(w.finalize()?) } |