🏡 index : ~doyle/bin.git

author Jordan Johnson-Doyle <jordan@doyle.la> 2019-02-16 19:00:54.0 +00:00:00
committer Jordan Johnson-Doyle <jordan@doyle.la> 2019-02-16 19:00:54.0 +00:00:00
commit
e4666830621107a55bde852b06b861afe7c53adb [patch]
tree
3a1e23bba893e2c8c0f60e64e7bcbab5fce61f0d
parent
2fad96945ee4db5e0870eea2dbf7caa6081db614
download
e4666830621107a55bde852b06b861afe7c53adb.tar.gz

Unnecessary fully qualified struct reference



Diff

 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
+++ b/src/main.rs
@@ -21,7 +21,7 @@ use askama::{MarkupDisplay, Template};

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 @@ use std::io::Read;
struct Index;

#[get("/")]
fn index() -> Result<rocket::response::content::Html<String>, Status> {
fn index() -> Result<Html<String>, Status> {
    Index
        .render()
        .map(|h| rocket::response::content::Html(h))
        .map(|h| Html(h))
        .map_err(|_| Status::InternalServerError)
}