From 775f0c039349335df880d35db7df6c131419f0eb Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 9 Jul 2019 12:51:10 +0200 Subject: 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. --- examples/guide-exploring-openpgp.rs | 2 +- examples/guide-the-keystore.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs index 358c1922..c8e51e9b 100644 --- a/examples/guide-exploring-openpgp.rs +++ b/examples/guide-exploring-openpgp.rs @@ -1,7 +1,7 @@ //! https://sequoia-pgp.org/guide/exploring-openpgp/ extern crate sequoia_openpgp as openpgp; -use openpgp::parse::Parse; +use crate::openpgp::parse::Parse; fn main() { let tpk = diff --git a/examples/guide-the-keystore.rs b/examples/guide-the-keystore.rs index 4748ad6b..8aff153e 100644 --- a/examples/guide-the-keystore.rs +++ b/examples/guide-the-keystore.rs @@ -3,7 +3,7 @@ extern crate sequoia_openpgp as openpgp; extern crate sequoia; use sequoia::{core, store}; -use openpgp::parse::Parse; +use crate::openpgp::parse::Parse; fn main() { let tpk = -- cgit v1.2.3