chore(log): update to log 0.4

This commit is contained in:
Sean McArthur
2018-01-04 14:50:18 -08:00
parent 6ade21aa7f
commit 34f0dba6dc
12 changed files with 26 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ use futures::stream::Stream;
use hyper::Client;
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let url = match env::args().nth(1) {
Some(url) => url,

View File

@@ -9,7 +9,7 @@ use hyper::server::{Http, Response, const_service, service_fn};
static PHRASE: &'static [u8] = b"Hello World!";
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr = ([127, 0, 0, 1], 3000).into();
let new_service = const_service(service_fn(|_| {

View File

@@ -41,7 +41,7 @@ impl Service for Srv {
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr1 = "127.0.0.1:1337".parse().unwrap();
let addr2 = "127.0.0.1:1338".parse().unwrap();

View File

@@ -96,7 +96,7 @@ impl Service for ParamExample {
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr = "127.0.0.1:1337".parse().unwrap();
let server = Http::new().bind(&addr, || Ok(ParamExample)).unwrap();

View File

@@ -132,7 +132,7 @@ impl Service for ResponseExamples {
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr = "127.0.0.1:1337".parse().unwrap();
let server = Http::new().bind(&addr, || Ok(ResponseExamples)).unwrap();

View File

@@ -44,7 +44,7 @@ impl Service for Echo {
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr = "127.0.0.1:1337".parse().unwrap();
let server = Http::new().bind(&addr, || Ok(Echo)).unwrap();

View File

@@ -76,7 +76,7 @@ impl Service for ResponseExamples {
fn main() {
pretty_env_logger::init().unwrap();
pretty_env_logger::init();
let addr = "127.0.0.1:1337".parse().unwrap();
let mut core = tokio_core::reactor::Core::new().unwrap();