Avoid deprecated functionality.

This commit is contained in:
Justus Winter 2024-01-29 19:45:07 +01:00
parent 2bae7c8c30
commit 4916eb589a
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -148,7 +148,7 @@ mod integration {
// the number of expected new signatures.
let orig_sigs: isize =
Cert::from_file(dir.clone().join(filename)).unwrap()
.into_packets()
.into_packets2()
.map(|p| {
if let Packet::Signature(_) = p {
1
@ -160,7 +160,7 @@ mod integration {
let fixed_sigs: isize = Cert::from_bytes(output)
.map(|cert| {
cert.into_packets()
cert.into_packets2()
.map(|p| {
match p {
Packet::Signature(_) => 1,