forked from Proxmox/proxmox
clippy fix: you should consider adding a Default
implementation
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
268fcfb43a
commit
b272279ef1
@ -72,6 +72,12 @@ pub struct PrivateAuthState {
|
||||
pub ctime: i64,
|
||||
}
|
||||
|
||||
impl Default for PrivateAuthState {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl PrivateAuthState {
|
||||
pub fn new() -> Self {
|
||||
let nonce = Nonce::new_random();
|
||||
|
Loading…
x
Reference in New Issue
Block a user