summaryrefslogtreecommitdiffstats
path: root/openpgp/tests/for-each-artifact.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/tests/for-each-artifact.rs')
-rw-r--r--openpgp/tests/for-each-artifact.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/tests/for-each-artifact.rs b/openpgp/tests/for-each-artifact.rs
index cb729dc5..7fcf721c 100644
--- a/openpgp/tests/for-each-artifact.rs
+++ b/openpgp/tests/for-each-artifact.rs
@@ -175,6 +175,7 @@ mod for_each_artifact {
// Cert::to_vec only ever returns public keys.)
let v = p.to_vec()?;
let mut buf = Vec::new();
+ #[allow(deprecated)]
for p in p.clone().strip_secret_key_material().into_packets() {
p.serialize(&mut buf)?;
}
@@ -188,6 +189,7 @@ mod for_each_artifact {
// Cert::as_tsk().to_vec() agree.
let v = p.as_tsk().to_vec()?;
let mut buf = Vec::new();
+ #[allow(deprecated)]
for p in p.into_packets() {
p.serialize(&mut buf)?;
}