mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-15 01:57:32 +00:00
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,
|
pub ctime: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for PrivateAuthState {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl PrivateAuthState {
|
impl PrivateAuthState {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let nonce = Nonce::new_random();
|
let nonce = Nonce::new_random();
|
||||||
|
Loading…
Reference in New Issue
Block a user