diff options
Diffstat (limited to 'server/src/main.rs')
-rw-r--r-- | server/src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 2cc8b98..dae2da4 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -3,9 +3,8 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2024 metamuffin <metamuffin.org> */ -#![feature(lazy_cell)] -#![feature(int_roundings)] -#![feature(let_chains)] +#![feature(int_roundings, let_chains)] +#![allow(clippy::needless_borrows_for_generic_args)] use crate::routes::ui::{account::hash_password, admin::log::enable_logging}; use anyhow::Context; @@ -48,7 +47,7 @@ async fn main() { Ser(User { admin: true, name: username.clone(), - password: hash_password(&username, &password), + password: hash_password(username, password), ..admin.unwrap_or_else(|| User { display_name: "Admin".to_string(), ..Default::default() |