From e4666830621107a55bde852b06b861afe7c53adb Mon Sep 17 00:00:00 2001 From: Jordan Johnson-Doyle Date: Sat, 16 Feb 2019 19:00:54 +0000 Subject: [PATCH] Unnecessary fully qualified struct reference --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 114df4e..d280a05 100644 --- a/src/main.rs +++ a/src/main.rs @@ -21,7 +21,7 @@ use rocket::http::{ContentType, Status}; use rocket::request::Form; -use rocket::response::content::Content; +use rocket::response::content::{Content, Html}; use rocket::response::Redirect; use rocket::Data; @@ -36,10 +36,10 @@ struct Index; #[get("/")] -fn index() -> Result, Status> { +fn index() -> Result, Status> { Index .render() - .map(|h| rocket::response::content::Html(h)) + .map(|h| Html(h)) .map_err(|_| Status::InternalServerError) } -- rgit 0.1.3