Unwrap option
This commit is contained in:
parent
fb66b087a4
commit
8765b12229
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue