diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-14 11:36:45 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-14 12:01:22 +0200 |
commit | 57531dbe5b277a46982e4dd2b0ab6c20ebe43682 (patch) | |
tree | 9fddc14e92f2da4fd7c99c145d4c7ea76bf6a993 /tool/src/commands | |
parent | ea4eaf796404c0fde15509274190cc4668c5d08e (diff) |
Replace most 'extern crate' directives with 'use'.
- See #480.
Diffstat (limited to 'tool/src/commands')
-rw-r--r-- | tool/src/commands/decrypt.rs | 4 | ||||
-rw-r--r-- | tool/src/commands/dump.rs | 2 | ||||
-rw-r--r-- | tool/src/commands/inspect.rs | 2 | ||||
-rw-r--r-- | tool/src/commands/mod.rs | 4 | ||||
-rw-r--r-- | tool/src/commands/sign.rs | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs index d7657cdb..07adabe6 100644 --- a/tool/src/commands/decrypt.rs +++ b/tool/src/commands/decrypt.rs @@ -4,7 +4,7 @@ use std::collections::HashMap; use std::io; use rpassword; -extern crate sequoia_openpgp as openpgp; +use sequoia_openpgp as openpgp; use sequoia_core::Context; use crate::openpgp::types::SymmetricAlgorithm; use crate::openpgp::fmt::hex; @@ -21,7 +21,7 @@ use crate::openpgp::parse::stream::{ VerificationHelper, DecryptionHelper, DecryptorBuilder, MessageStructure, }; use crate::openpgp::policy::Policy; -extern crate sequoia_store as store; +use sequoia_store as store; use super::{dump::PacketDumper, VHelper}; diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs index 764c14f0..6f35f56d 100644 --- a/tool/src/commands/dump.rs +++ b/tool/src/commands/dump.rs @@ -1,6 +1,6 @@ use std::io::{self, Read}; -extern crate sequoia_openpgp as openpgp; +use sequoia_openpgp as openpgp; use self::openpgp::types::{Duration, Timestamp, SymmetricAlgorithm}; use self::openpgp::fmt::hex; use self::openpgp::crypto::mpi; diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 52ef375b..e275c261 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -3,7 +3,7 @@ use std::io::{self, Read}; use clap; -extern crate sequoia_openpgp as openpgp; +use sequoia_openpgp as openpgp; use crate::openpgp::{KeyHandle, Packet, Result}; use crate::openpgp::cert::prelude::*; use openpgp::packet::{ diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index 04e84987..6415e2cf 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -6,7 +6,7 @@ use std::io::{self, Write}; use std::time::SystemTime; use rpassword; -extern crate sequoia_openpgp as openpgp; +use sequoia_openpgp as openpgp; use sequoia_core::Context; use crate::openpgp::types::{ CompressionAlgorithm, @@ -29,7 +29,7 @@ use crate::openpgp::serialize::stream::{ }, }; use crate::openpgp::policy::Policy; -extern crate sequoia_store as store; +use sequoia_store as store; pub mod decrypt; pub use self::decrypt::decrypt; diff --git a/tool/src/commands/sign.rs b/tool/src/commands/sign.rs index 9bc2af4d..41691af0 100644 --- a/tool/src/commands/sign.rs +++ b/tool/src/commands/sign.rs @@ -5,7 +5,7 @@ use std::path::PathBuf; use std::time::SystemTime; use tempfile::NamedTempFile; -extern crate sequoia_openpgp as openpgp; +use sequoia_openpgp as openpgp; use crate::openpgp::armor; use crate::openpgp::{Packet, Result}; use crate::openpgp::packet::Signature; |