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. --- ipc/examples/gpg-agent-sign.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipc/examples/gpg-agent-sign.rs') diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs index 8525abbb..43435b46 100644 --- a/ipc/examples/gpg-agent-sign.rs +++ b/ipc/examples/gpg-agent-sign.rs @@ -6,11 +6,11 @@ extern crate clap; extern crate sequoia_openpgp as openpgp; extern crate sequoia_ipc as ipc; -use openpgp::armor; -use openpgp::constants::DataFormat; -use openpgp::parse::Parse; -use openpgp::serialize::stream::{Message, LiteralWriter, Signer}; -use ipc::gnupg::{Context, KeyPair}; +use crate::openpgp::armor; +use crate::openpgp::constants::DataFormat; +use crate::openpgp::parse::Parse; +use crate::openpgp::serialize::stream::{Message, LiteralWriter, Signer}; +use crate::ipc::gnupg::{Context, KeyPair}; fn main() { let matches = clap::App::new("gpg-agent-sign") -- cgit v1.2.3