From 7f306445cb78d52f598eca1810dc2c5002e34a4a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 2 Jan 2020 21:09:47 +0100 Subject: No need for extern crate in Rust 2018. --- examples/zot/abook.rs | 3 --- src/lib.rs | 3 --- tests/zotapi.rs | 3 --- 3 files changed, 9 deletions(-) diff --git a/examples/zot/abook.rs b/examples/zot/abook.rs index bceaacc..7e91981 100644 --- a/examples/zot/abook.rs +++ b/examples/zot/abook.rs @@ -15,9 +15,6 @@ * along with this program. If not, see . */ -extern crate zotapi; -extern crate serde_json; - pub fn fetch(client: &zotapi::Client, raw: bool) { match client.abook().fetch() { Ok(payload) => { diff --git a/src/lib.rs b/src/lib.rs index 0ef8d33..e9b6bf9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,9 +14,6 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -extern crate reqwest; -extern crate serde; - mod abconfig; mod abook; mod client; diff --git a/tests/zotapi.rs b/tests/zotapi.rs index aa9756c..d828632 100644 --- a/tests/zotapi.rs +++ b/tests/zotapi.rs @@ -14,9 +14,6 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -extern crate zotapi; -extern crate mockito; - use mockito::{mock, Matcher, Mock}; fn mock_with_authorization(method: &str, url: &str) -> Mock { -- cgit v1.2.3