summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/literal.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-07-09 12:51:10 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-07-15 12:47:53 +0200
commit775f0c039349335df880d35db7df6c131419f0eb (patch)
tree2d16928f3a629b7afae95cf1b9d518c5603a9f93 /openpgp/src/packet/literal.rs
parentcaec575e3c44e6045e29aa452ad31f91d04ec139 (diff)
Prepare for Rust 2018.
- This is the result of running `cargo fix --edition`, with some manual adjustments. - The vast majority of changes merely qualify module paths with 'crate::'. - Two instances of adding an anonymous pattern to a trait's function. - `async` is a keyword in Rust 2018, and hence it needs to be escaped (e.g. in the case of the net::r#async module). - The manual adjustments were needed due to various shortcomings of the analysis employed by `cargo fix`, e.g. unexpanded macros, procedural macros, lalrpop grammars.
Diffstat (limited to 'openpgp/src/packet/literal.rs')
-rw-r--r--openpgp/src/packet/literal.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/packet/literal.rs b/openpgp/src/packet/literal.rs
index e892ea2b..4b3aa4fe 100644
--- a/openpgp/src/packet/literal.rs
+++ b/openpgp/src/packet/literal.rs
@@ -3,12 +3,12 @@ use std::cmp;
use time;
use quickcheck::{Arbitrary, Gen};
-use constants::DataFormat;
-use conversions::Time;
-use Error;
-use packet;
-use Packet;
-use Result;
+use crate::constants::DataFormat;
+use crate::conversions::Time;
+use crate::Error;
+use crate::packet;
+use crate::Packet;
+use crate::Result;
/// Holds a literal packet.
///
@@ -195,8 +195,8 @@ impl Arbitrary for Literal {
#[cfg(test)]
mod tests {
use super::*;
- use parse::Parse;
- use serialize::SerializeInto;
+ use crate::parse::Parse;
+ use crate::serialize::SerializeInto;
quickcheck! {
fn roundtrip(p: Literal) -> bool {