style(lib): use rust 2018 edition idioms (#1910)

This commit is contained in:
lzutao
2019-08-22 01:22:07 +07:00
committed by Sean McArthur
parent ae75b3a732
commit fc7f81b67c
38 changed files with 90 additions and 146 deletions

View File

@@ -1,7 +1,5 @@
// #![deny(warnings)] // FIXME: https://github.com/rust-lang/rust/issues/62411
extern crate hyper;
extern crate pretty_env_logger;
extern crate url;
#![warn(rust_2018_idioms)]
use hyper::{Body, Method, Request, Response, Server, StatusCode};
use hyper::service::{service_fn, make_service_fn};