aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-01-02 21:09:47 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-01-02 21:09:47 +0100
commit7f306445cb78d52f598eca1810dc2c5002e34a4a (patch)
tree1043d1522e4fa5afd3fe7fbe341b4745fb46cd02
parentbee7318ca808d36b29cbf6021ec47252ab2305f8 (diff)
downloadrust-zotapi-7f306445cb78d52f598eca1810dc2c5002e34a4a.tar.gz
rust-zotapi-7f306445cb78d52f598eca1810dc2c5002e34a4a.tar.bz2
rust-zotapi-7f306445cb78d52f598eca1810dc2c5002e34a4a.zip
No need for extern crate in Rust 2018.
-rw-r--r--examples/zot/abook.rs3
-rw-r--r--src/lib.rs3
-rw-r--r--tests/zotapi.rs3
3 files changed, 0 insertions, 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 <http://www.gnu.org/licenses/>.
*/
-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 <https://www.gnu.org/licenses/>.
-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 <https://www.gnu.org/licenses/>.
-extern crate zotapi;
-extern crate mockito;
-
use mockito::{mock, Matcher, Mock};
fn mock_with_authorization(method: &str, url: &str) -> Mock {