summaryrefslogtreecommitdiffstats
path: root/openpgp/src
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/armor.rs1
-rw-r--r--openpgp/src/crypto/mem.rs2
-rw-r--r--openpgp/src/parse.rs2
-rw-r--r--openpgp/src/parse/partial_body.rs2
-rw-r--r--openpgp/src/regex/mod.rs1
-rw-r--r--openpgp/src/serialize/stream/dash_escape.rs1
-rw-r--r--openpgp/src/serialize/stream/partial_body.rs1
-rw-r--r--openpgp/src/serialize/stream/trim_whitespace.rs1
8 files changed, 2 insertions, 9 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index 6a5eb9bb..1fa3c671 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -28,7 +28,6 @@
//! # Ok(()) }
//! ```
-use base64;
use buffered_reader::BufferedReader;
use std::convert::TryFrom;
use std::fmt;
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs
index 59056cac..10ef3f4e 100644
--- a/openpgp/src/crypto/mem.rs
+++ b/openpgp/src/crypto/mem.rs
@@ -26,7 +26,6 @@ use std::fmt;
use std::hash::{Hash, Hasher};
use std::ops::{Deref, DerefMut};
-use memsec;
/// Protected memory.
///
@@ -247,7 +246,6 @@ const ENCRYPTED_MEMORY_PAGE_SIZE: usize = 4096;
/// Code outside of it cannot access it, because `PREKEY` is private.
mod has_access_to_prekey {
use std::io::{self, Cursor, Write};
- use lazy_static;
use crate::types::{AEADAlgorithm, HashAlgorithm, SymmetricAlgorithm};
use crate::crypto::{aead, SessionKey};
use crate::crypto::hash::Digest;
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index 4a91d7b2..48a731ca 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -176,7 +176,7 @@
//! [`SEIP`]: ../packet/enum.SEIP.html
//! [`MDC`]: ../packet/struct.MDC.html
//! [`AED`]: ../packet/enum.AED.html
-use std;
+
use std::io;
use std::io::prelude::*;
use std::convert::TryFrom;
diff --git a/openpgp/src/parse/partial_body.rs b/openpgp/src/parse/partial_body.rs
index 3df2b390..bd9a26c8 100644
--- a/openpgp/src/parse/partial_body.rs
+++ b/openpgp/src/parse/partial_body.rs
@@ -1,4 +1,4 @@
-use std;
+
use std::cmp;
use std::io;
use std::io::{Error, ErrorKind};
diff --git a/openpgp/src/regex/mod.rs b/openpgp/src/regex/mod.rs
index 6d3cd408..1e07dd5c 100644
--- a/openpgp/src/regex/mod.rs
+++ b/openpgp/src/regex/mod.rs
@@ -243,7 +243,6 @@ use std::fmt;
use lalrpop_util::ParseError;
use regex_syntax::hir::{self, Hir};
-use regex;
use crate::Error;
use crate::Result;
diff --git a/openpgp/src/serialize/stream/dash_escape.rs b/openpgp/src/serialize/stream/dash_escape.rs
index c84f3f0c..b34cb314 100644
--- a/openpgp/src/serialize/stream/dash_escape.rs
+++ b/openpgp/src/serialize/stream/dash_escape.rs
@@ -5,7 +5,6 @@
//!
//! [Section 7.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-7.1
-use std;
use std::fmt;
use std::io;
diff --git a/openpgp/src/serialize/stream/partial_body.rs b/openpgp/src/serialize/stream/partial_body.rs
index d85ca96e..298b97d2 100644
--- a/openpgp/src/serialize/stream/partial_body.rs
+++ b/openpgp/src/serialize/stream/partial_body.rs
@@ -1,6 +1,5 @@
//! Encodes a byte stream using OpenPGP's partial body encoding.
-use std;
use std::fmt;
use std::io;
use std::cmp;
diff --git a/openpgp/src/serialize/stream/trim_whitespace.rs b/openpgp/src/serialize/stream/trim_whitespace.rs
index 1236b6f6..b77d9951 100644
--- a/openpgp/src/serialize/stream/trim_whitespace.rs
+++ b/openpgp/src/serialize/stream/trim_whitespace.rs
@@ -5,7 +5,6 @@
//!
//! [Section 7.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-7.1
-use std;
use std::fmt;
use std::io;