From 927058d767a786aa5675349e4a17a65ab19a17c0 Mon Sep 17 00:00:00 2001 From: Sean Schwartz Date: Sat, 20 Jan 2018 20:50:21 -0600 Subject: [PATCH] Upgrade env_logger Upgraded env_logger from 0.4.3 to 0.5.3 Updated example code to match new env_logger::init() use. --- Cargo.toml | 2 +- examples/autobahn-client.rs | 2 +- examples/autobahn-server.rs | 2 +- examples/client.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5f9387..a67e435 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,4 +35,4 @@ optional = true version = "0.1.5" [dev-dependencies] -env_logger = "0.4.3" +env_logger = "0.5.3" diff --git a/examples/autobahn-client.rs b/examples/autobahn-client.rs index b0d9a24..565fee3 100644 --- a/examples/autobahn-client.rs +++ b/examples/autobahn-client.rs @@ -46,7 +46,7 @@ fn run_test(case: u32) -> Result<()> { } fn main() { - env_logger::init().unwrap(); + env_logger::init(); let total = get_case_count().unwrap(); diff --git a/examples/autobahn-server.rs b/examples/autobahn-server.rs index a3a7616..a33339d 100644 --- a/examples/autobahn-server.rs +++ b/examples/autobahn-server.rs @@ -29,7 +29,7 @@ fn handle_client(stream: TcpStream) -> Result<()> { } fn main() { - env_logger::init().unwrap(); + env_logger::init(); let server = TcpListener::bind("127.0.0.1:9001").unwrap(); diff --git a/examples/client.rs b/examples/client.rs index 3116ebc..3e3cc90 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -6,7 +6,7 @@ use url::Url; use tungstenite::{connect, Message}; fn main() { - env_logger::init().unwrap(); + env_logger::init(); let (mut socket, response) = connect(Url::parse("ws://localhost:3012/socket").unwrap()).expect("Can't connect");