summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-12-15 17:53:36 +0100
committerJustus Winter <justus@sequoia-pgp.org>2022-12-23 10:52:57 +0100
commitf4d4c9804a29d69ad7b88147c07f5d2639fb7d88 (patch)
tree4163119d7e22171b73f13e6f3edc3ce90be9cec5 /openpgp/src/cert
parent75bb553e573da523c78ef33a4b92bd57f34c73b2 (diff)
Port to Rust Edition 2021.
Diffstat (limited to 'openpgp/src/cert')
-rw-r--r--openpgp/src/cert/builder.rs1
-rw-r--r--openpgp/src/cert/parser/mod.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs
index 3593fdc2..3060627c 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -1341,7 +1341,6 @@ impl CertBuilder<'_> {
pub fn generate(self) -> Result<(Cert, Signature)> {
use crate::Packet;
use crate::types::ReasonForRevocation;
- use std::convert::TryFrom;
let creation_time =
self.creation_time.unwrap_or_else(|| {
diff --git a/openpgp/src/cert/parser/mod.rs b/openpgp/src/cert/parser/mod.rs
index b98f286b..ac96c1a4 100644
--- a/openpgp/src/cert/parser/mod.rs
+++ b/openpgp/src/cert/parser/mod.rs
@@ -802,7 +802,6 @@ impl<'a> CertParser<'a> {
t!("Finalizing certificate with {} packets", n_packets);
// Convert to tokens, but preserve packets if it fails.
- use std::convert::TryInto;
let mut failed = false;
let mut packets: Vec<Packet> = Vec::with_capacity(0);
let mut tokens: Vec<Token> = Vec::with_capacity(n_packets);