feat(account): make new const
This commit is contained in:
parent
153c401cb1
commit
ffe4084ba3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue