Updated Error to implement Display and Debug, instead of using custom methods

This commit is contained in:
Daniel García
2018-12-29 01:01:58 +01:00
parent 1483829c94
commit adb8052689
5 changed files with 204 additions and 164 deletions

View File

@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
use rocket::http::ContentType;
use rocket::request::Request;
use rocket::response::content::{Content, Html};
use rocket::response::content::Content;
use rocket::response::{self, NamedFile, Responder};
use rocket::Route;
use rocket_contrib::json::Json;
@ -44,6 +44,7 @@ fn app_id() -> Cached<Content<Json<Value>>> {
}
const ADMIN_PAGE: &'static str = include_str!("../static/admin.html");
use rocket::response::content::Html;
#[get("/admin")]
fn admin_page() -> Cached<Html<&'static str>> {