diff --git a/src/lib.rs b/src/lib.rs index 52d5531..3587ba5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -91,21 +91,6 @@ //! we first check if the user has set a `; charset=` and attempt //! to encode the request body using that. //! -extern crate ascii; -extern crate base64; -extern crate chunked_transfer; -extern crate cookie; -#[macro_use] -extern crate lazy_static; -extern crate qstring; -extern crate url; - -#[cfg(feature = "charset")] -extern crate encoding; -#[cfg(feature = "tls")] -extern crate native_tls; -#[cfg(feature = "json")] -extern crate serde_json; mod agent; mod body; diff --git a/src/request.rs b/src/request.rs index 8b4002c..02fb7b2 100644 --- a/src/request.rs +++ b/src/request.rs @@ -1,6 +1,7 @@ use qstring::QString; use std::io::Read; use std::sync::Arc; +use lazy_static::lazy_static; #[cfg(feature = "json")] use super::SerdeValue; diff --git a/src/test/mod.rs b/src/test/mod.rs index c1709a6..7df408c 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -1,6 +1,7 @@ use crate::agent::Unit; use crate::error::Error; use crate::stream::Stream; +use lazy_static::lazy_static; use std::collections::HashMap; use std::io::{Cursor, Write}; use std::sync::{Arc, Mutex};