From ae57359353cf31ff374a8932999742920878bf00 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 12 Oct 2022 22:52:15 +0200 Subject: upgrade to diesel 2.0 --- planetwars-server/src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'planetwars-server/src/cli.rs') 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"); } } -- cgit v1.2.3