Unnecessary fully qualified struct reference
Diff
src/main.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -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<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)
}