diff options
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/mpis.rs | 2 | ||||
-rw-r--r-- | openpgp/src/parse/parse.rs | 6 | ||||
-rw-r--r-- | openpgp/src/parse/stream.rs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/openpgp/src/parse/mpis.rs b/openpgp/src/parse/mpis.rs index c247a848..98c3a9e7 100644 --- a/openpgp/src/parse/mpis.rs +++ b/openpgp/src/parse/mpis.rs @@ -8,7 +8,7 @@ use crate::{ SymmetricAlgorithm, HashAlgorithm, }; -use crate::constants::Curve; +use crate::types::Curve; use crate::crypto::mpis::{self, MPI}; use crate::parse::{ PacketHeaderParser, diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index ae07ac24..f6d64b66 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -28,7 +28,7 @@ use crate::{ KeyID, crypto::SessionKey, }; -use crate::constants::{ +use crate::types::{ AEADAlgorithm, CompressionAlgorithm, SignatureType, @@ -1734,7 +1734,7 @@ impl_parse_generic_packet!(Literal); #[test] fn literal_parser_test () { - use crate::constants::DataFormat; + use crate::types::DataFormat; { let data = crate::tests::message("literal-mode-b.gpg"); let mut pp = PacketParser::from_bytes(data).unwrap().unwrap(); @@ -1840,7 +1840,7 @@ impl_parse_generic_packet!(CompressedData); #[cfg(any(feature = "compression-deflate", feature = "compression-bzip2"))] #[test] fn compressed_data_parser_test () { - use crate::constants::DataFormat; + use crate::types::DataFormat; let expected = crate::tests::manifesto(); diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 48c1fd2a..66937de1 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -20,7 +20,7 @@ use buffered_reader::BufferedReader; use crate::{ Error, Fingerprint, - constants::{ + types::{ AEADAlgorithm, CompressionAlgorithm, DataFormat, @@ -1067,7 +1067,7 @@ impl DetachedVerifier { /// extern crate failure; /// use std::io::Read; /// use openpgp::crypto::SessionKey; -/// use openpgp::constants::SymmetricAlgorithm; +/// use openpgp::types::SymmetricAlgorithm; /// use openpgp::{KeyID, TPK, Result, packet::{Key, PKESK, SKESK}}; /// use openpgp::parse::stream::*; /// # fn main() { f().unwrap(); } |