From 38104ba7cfdf6583b3efd3a67134d88d81af3f41 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Sat, 15 May 2021 22:46:37 -0700 Subject: [PATCH] `cargo fmt` changes The PR build seems to fail without this... --- src/api/admin.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/admin.rs b/src/api/admin.rs index 58be0ff6..c9054a29 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -308,7 +308,8 @@ fn invite_user(data: Json, _token: AdminToken, conn: DbConn) -> Json } user.save(&conn) - })().map_err(|e| e.with_code(Status::InternalServerError.code))?; + })() + .map_err(|e| e.with_code(Status::InternalServerError.code))?; Ok(Json(user.to_json(&conn))) }