Unwrap option

This commit is contained in:
Zachary Dunn 2018-09-10 14:54:18 -04:00
parent fb66b087a4
commit 8765b12229

View File

@ -247,7 +247,7 @@ fn about(user: Option<User>, conn: DbConn) -> Template {
#[get("/manifest.json")] #[get("/manifest.json")]
fn web_manifest(conn: DbConn) -> Json<serde_json::Value> { fn web_manifest(conn: DbConn) -> Json<serde_json::Value> {
let instance = Instance::get_local(&*conn); let instance = Instance::get_local(&*conn).unwrap();
Json(json!({ Json(json!({
"name": &instance.name, "name": &instance.name,
"description": &instance.short_description, "description": &instance.short_description,