From d2abbe72e031eff3c37cd539b797fdb6010e5934 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 16 Sep 2018 20:28:24 -0700 Subject: [PATCH] Merge 'use's in 'hello_2018' example. --- examples/hello_2018/src/main.rs | 3 +-- examples/hello_2018/src/tests.rs | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/hello_2018/src/main.rs b/examples/hello_2018/src/main.rs index 6c02f8b8..7b54fe37 100644 --- a/examples/hello_2018/src/main.rs +++ b/examples/hello_2018/src/main.rs @@ -1,8 +1,7 @@ #![feature(plugin, decl_macro, proc_macro_non_items)] #![plugin(rocket_codegen)] -use rocket; -use rocket::routes; +use rocket::{self, routes}; #[cfg(test)] mod tests; diff --git a/examples/hello_2018/src/tests.rs b/examples/hello_2018/src/tests.rs index a13aa679..c94021ab 100644 --- a/examples/hello_2018/src/tests.rs +++ b/examples/hello_2018/src/tests.rs @@ -1,6 +1,4 @@ -use rocket; -use rocket::routes; -use rocket::local::Client; +use rocket::{self, routes, local::Client}; #[test] fn hello_world() {