Browse Source

`cargo fmt` changes

The PR build seems to fail without this...
Jeremy Lin 4 năm trước cách đây
mục cha
commit
38104ba7cf
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/api/admin.rs

+ 2 - 1
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)))
 }