From ffe4084ba3efe7cde170dc93c130828394fd15ed Mon Sep 17 00:00:00 2001 From: DJMrTV Date: Sat, 1 Feb 2025 17:38:09 +0100 Subject: [PATCH] feat(account): make new const --- src/nex/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nex/account.rs b/src/nex/account.rs index 53728ed..2763aed 100644 --- a/src/nex/account.rs +++ b/src/nex/account.rs @@ -6,7 +6,7 @@ struct Account{ } impl Account{ - fn new(pid: u32, passwd: &str) -> Self{ + const fn new(pid: u32, passwd: &str) -> Self{ Self{ kerbros_password: passwd.into(), pid