1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

Fix/suppress warnings

This commit is contained in:
Yuki Okushi
2020-04-03 16:14:30 +09:00
parent 0f1568bd3c
commit 8f1c0a85cf
19 changed files with 29 additions and 32 deletions

View File

@ -99,7 +99,7 @@ mod handlers {
let user_info: User = user.into_inner();
let client: Client =
db_pool.get().await.map_err(|err| MyError::PoolError(err))?;
db_pool.get().await.map_err(MyError::PoolError)?;
let new_user = db::add_user(&client, user_info).await?;