fix type error
This commit is contained in:
1 parent
dbb084b0ec
commit
d280d0f095
1 file changed
+1
-1
+1
-1
@@ -112,7 +112,7 @@ pub(crate) fn serve() -> std::io::Result<()> {
|
|||||||
web::get().to_async(
|
web::get().to_async(
|
||||||
move |pool: AppPool, data: web::Path<(String, f32)>| {
|
move |pool: AppPool, data: web::Path<(String, f32)>| {
|
||||||
db_call(pool, move |api| {
|
db_call(pool, move |api| {
|
||||||
api.as_admin().add_player(data.0.clone(), data.1)
|
api.as_admin().add_player(&data.0, data.1)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user