remove extern crate

This commit is contained in:
Martin Algesten
2018-12-18 13:45:13 +01:00
parent d2290e6b65
commit 131476bd1a
3 changed files with 2 additions and 15 deletions

View File

@@ -91,21 +91,6 @@
//! we first check if the user has set a `; charset=<whatwg 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;

View File

@@ -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;

View File

@@ -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};