Remove all extern crate...
In Rust 2018 edition, it is considered unidiomatic to use "extern crate" sunthax. The proper way to do it is to replace extern crate with "use" declarations. - Also impl clippy suggestions for fn main removal in doctests - Fix unneeded box allocations and clones Signed-off-by: Damien Stanton <damien.stanton@gmail.com> Signed-off-by: YUAN LYU <lyuyuan92@gmail.com>
This commit is contained in:
committed by
Adrian Catangiu
parent
a7f035b8c5
commit
eeae4ac11d
@@ -397,8 +397,6 @@ impl HttpServer {
|
||||
///
|
||||
/// ## Non-blocking server
|
||||
/// ```
|
||||
/// extern crate utils;
|
||||
///
|
||||
/// use std::os::unix::io::AsRawFd;
|
||||
///
|
||||
/// use micro_http::{HttpServer, Response, StatusCode};
|
||||
|
||||
Reference in New Issue
Block a user