clippy fix: you should consider adding a Default implementation

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-08-08 10:01:46 +02:00 committed by Wolfgang Bumiller
parent 268fcfb43a
commit b272279ef1

View File

@ -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();