aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/cli.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-12 22:52:15 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-12 22:52:15 +0200
commitae57359353cf31ff374a8932999742920878bf00 (patch)
tree0db27d394a2a61a5cc94e73014c82954829c1338 /planetwars-server/src/cli.rs
parented016773b112460ebbf0ff023b0915545229ed41 (diff)
downloadplanetwars.dev-ae57359353cf31ff374a8932999742920878bf00.tar.xz
planetwars.dev-ae57359353cf31ff374a8932999742920878bf00.zip
upgrade to diesel 2.0
Diffstat (limited to 'planetwars-server/src/cli.rs')
-rw-r--r--planetwars-server/src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/cli.rs b/planetwars-server/src/cli.rs
index f33506e..e1eeac3 100644
--- a/planetwars-server/src/cli.rs
+++ b/planetwars-server/src/cli.rs
@@ -38,12 +38,12 @@ impl SetPassword {
let global_config = get_config().unwrap();
let pool = create_db_pool(&global_config).await;
- let conn = pool.get().await.expect("could not get database connection");
+ let mut conn = pool.get().await.expect("could not get database connection");
let credentials = db::users::Credentials {
username: &self.username,
password: &self.new_password,
};
- db::users::set_user_password(credentials, &conn).expect("could not set password");
+ db::users::set_user_password(credentials, &mut conn).expect("could not set password");
}
}