commit 38104ba7cfdf6583b3efd3a67134d88d81af3f41 parent c42bcae22471b04569c999ada30d93dc82668763 Author: Jeremy Lin <jeremy.lin@gmail.com> Date: Sat, 15 May 2021 22:46:37 -0700 `cargo fmt` changes The PR build seems to fail without this... Diffstat:
M | src/api/admin.rs | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/api/admin.rs b/src/api/admin.rs @@ -308,7 +308,8 @@ fn invite_user(data: Json<InviteData>, _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))) }