diff options
Diffstat (limited to 'openpgp/tests/for-each-artifact.rs')
-rw-r--r-- | openpgp/tests/for-each-artifact.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openpgp/tests/for-each-artifact.rs b/openpgp/tests/for-each-artifact.rs index d1744dd5..8979ccaa 100644 --- a/openpgp/tests/for-each-artifact.rs +++ b/openpgp/tests/for-each-artifact.rs @@ -34,10 +34,7 @@ mod for_each_artifact { }; let mut v = Vec::new(); - // Temporarily convert to TSK to serialize secrets. - let p = p.into_tsk(); - p.serialize(&mut v)?; - let p = p.into_tpk(); + p.as_tsk().serialize(&mut v)?; let q = openpgp::TPK::from_bytes(&v)?; assert_eq!(p, q, "roundtripping {:?} failed", src); Ok(()) |