fix type error
This commit is contained in:
@@ -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