summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2019-12-19 00:29:24 +0100
committerIgor Matuszewski <igor@sequoia-pgp.org>2019-12-19 00:29:24 +0100
commit213cdc24996793bb544e4003f470faa7b5956a60 (patch)
tree705fee700789ec935dbfcd310c27fba1e64756e5 /openpgp
parente3075efc41f8bb9f53d38b9e74bff1b4518a4152 (diff)
openpgp: Remove redundant imports
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/cert/mod.rs1
-rw-r--r--openpgp/src/packet/signature/subpacket.rs3
2 files changed, 0 insertions, 4 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs
index a4a87c42..e691e1c4 100644
--- a/openpgp/src/cert/mod.rs
+++ b/openpgp/src/cert/mod.rs
@@ -1843,7 +1843,6 @@ impl Cert {
R: key::KeyRole,
Packet: From<packet::Key<P, R>>,
{
- use std::cmp::Ordering;
for q in acc.iter_mut() {
let replace = match q {
Packet::PublicKey(k_) =>
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs
index 987b2543..e37da609 100644
--- a/openpgp/src/packet/signature/subpacket.rs
+++ b/openpgp/src/packet/signature/subpacket.rs
@@ -426,8 +426,6 @@ impl SubpacketArea {
/// Returns `Error::MalformedPacket` if adding the packet makes
/// the subpacket area exceed the size limit.
pub fn add(&mut self, packet: Subpacket) -> Result<()> {
- use crate::serialize::SerializeInto;
-
if self.serialized_len() + packet.serialized_len()
> ::std::u16::MAX as usize
{
@@ -448,7 +446,6 @@ impl SubpacketArea {
/// Returns `Error::MalformedPacket` if adding the packet makes
/// the subpacket area exceed the size limit.
pub fn replace(&mut self, packet: Subpacket) -> Result<()> {
- use crate::serialize::SerializeInto;
if self.iter().filter_map(|sp| if sp.tag() != packet.tag() {
Some(sp.serialized_len())
} else {