summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/packet_pile_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/packet_pile_parser.rs')
-rw-r--r--openpgp/src/parse/packet_pile_parser.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/parse/packet_pile_parser.rs b/openpgp/src/parse/packet_pile_parser.rs
index 3b20ab24..9efc6b9c 100644
--- a/openpgp/src/parse/packet_pile_parser.rs
+++ b/openpgp/src/parse/packet_pile_parser.rs
@@ -1,13 +1,13 @@
use std::io;
use std::path::Path;
-use {
+use crate::{
Result,
Packet,
Container,
PacketPile,
};
-use parse::{
+use crate::parse::{
PacketParserBuilder,
PacketParserResult,
PacketParser,
@@ -277,7 +277,7 @@ impl<'a> PacketPileParser<'a> {
fn message_parser_test() {
let mut count = 0;
let mut mp =
- PacketPileParser::from_bytes(::tests::key("public-key.gpg"))
+ PacketPileParser::from_bytes(crate::tests::key("public-key.gpg"))
.unwrap();
while mp.recurse() {
count += 1;
@@ -292,12 +292,12 @@ fn message_parser_test() {
fn message_parser_reader_interface() {
use std::io::Read;
- let expected = ::tests::manifesto();
+ let expected = crate::tests::manifesto();
// A message containing a compressed packet that contains a
// literal packet.
let mut mp = PacketPileParser::from_bytes(
- ::tests::message("compressed-data-algo-1.gpg")).unwrap();
+ crate::tests::message("compressed-data-algo-1.gpg")).unwrap();
let mut count = 0;
while mp.recurse() {
let pp = mp.ppr.as_mut().unwrap();