summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-10-14 11:36:45 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-10-14 12:01:22 +0200
commit57531dbe5b277a46982e4dd2b0ab6c20ebe43682 (patch)
tree9fddc14e92f2da4fd7c99c145d4c7ea76bf6a993 /sqv
parentea4eaf796404c0fde15509274190cc4668c5d08e (diff)
Replace most 'extern crate' directives with 'use'.
- See #480.
Diffstat (limited to 'sqv')
-rw-r--r--sqv/build.rs2
-rw-r--r--sqv/src/sqv.rs4
-rw-r--r--sqv/tests/bad-subkey.rs2
-rw-r--r--sqv/tests/duplicate-signatures.rs2
-rw-r--r--sqv/tests/multiple-signatures.rs2
-rw-r--r--sqv/tests/not-before-after.rs2
-rw-r--r--sqv/tests/revoked-key.rs2
-rw-r--r--sqv/tests/wrong-key-flags.rs4
8 files changed, 6 insertions, 14 deletions
diff --git a/sqv/build.rs b/sqv/build.rs
index ea6513b1..7c1eda1c 100644
--- a/sqv/build.rs
+++ b/sqv/build.rs
@@ -1,4 +1,4 @@
-extern crate clap;
+use clap;
use std::env;
use std::fs;
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs
index 8e9509e7..45106812 100644
--- a/sqv/src/sqv.rs
+++ b/sqv/src/sqv.rs
@@ -6,10 +6,10 @@
use std::process::exit;
use chrono::{DateTime, offset::Utc};
-extern crate clap;
+use clap;
use anyhow::Context;
-extern crate sequoia_openpgp as openpgp;
+use sequoia_openpgp as openpgp;
use crate::openpgp::{
Cert,
diff --git a/sqv/tests/bad-subkey.rs b/sqv/tests/bad-subkey.rs
index bf83e2dc..7e5a4fbd 100644
--- a/sqv/tests/bad-subkey.rs
+++ b/sqv/tests/bad-subkey.rs
@@ -1,5 +1,3 @@
-extern crate assert_cli;
-
#[cfg(test)]
mod integration {
use std::path;
diff --git a/sqv/tests/duplicate-signatures.rs b/sqv/tests/duplicate-signatures.rs
index c91df964..10d789e2 100644
--- a/sqv/tests/duplicate-signatures.rs
+++ b/sqv/tests/duplicate-signatures.rs
@@ -1,4 +1,4 @@
-extern crate assert_cli;
+use assert_cli;
use assert_cli::Assert;
diff --git a/sqv/tests/multiple-signatures.rs b/sqv/tests/multiple-signatures.rs
index 69d5a982..e423215e 100644
--- a/sqv/tests/multiple-signatures.rs
+++ b/sqv/tests/multiple-signatures.rs
@@ -1,4 +1,4 @@
-extern crate assert_cli;
+use assert_cli;
use assert_cli::Assert;
diff --git a/sqv/tests/not-before-after.rs b/sqv/tests/not-before-after.rs
index 8279f41d..6b2ed805 100644
--- a/sqv/tests/not-before-after.rs
+++ b/sqv/tests/not-before-after.rs
@@ -1,5 +1,3 @@
-extern crate assert_cli;
-
#[cfg(test)]
mod integration {
use assert_cli::Assert;
diff --git a/sqv/tests/revoked-key.rs b/sqv/tests/revoked-key.rs
index e15ca621..44e41e41 100644
--- a/sqv/tests/revoked-key.rs
+++ b/sqv/tests/revoked-key.rs
@@ -38,8 +38,6 @@
//! now -|
//! v
-extern crate assert_cli;
-
#[cfg(test)]
mod integration {
use assert_cli::Assert;
diff --git a/sqv/tests/wrong-key-flags.rs b/sqv/tests/wrong-key-flags.rs
index 222297c5..477e00d0 100644
--- a/sqv/tests/wrong-key-flags.rs
+++ b/sqv/tests/wrong-key-flags.rs
@@ -1,5 +1,3 @@
-extern crate assert_cli;
-
#[cfg(test)]
mod integration {
use assert_cli::Assert;
@@ -20,7 +18,7 @@ mod integration {
}
// Code to create the data for the test cases above
-// extern crate sequoia_openpgp;
+// use sequoia_openpgp;
//
// #[test]
// fn create_key() {