Unwrap option

This commit is contained in:
Zachary Dunn 2018-09-10 14:54:18 -04:00
parent fb66b087a4
commit 8765b12229
1 changed files with 1 additions and 1 deletions

View File

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