]> git.proxmox.com Git - proxmox.git/commitdiff
clippy fix: you should consider adding a `Default` implementation
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 8 Aug 2023 08:01:46 +0000 (10:01 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Aug 2023 09:29:36 +0000 (11:29 +0200)
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-openid/src/lib.rs

index c2b73c9d7abe6fe83d5d9d9926d91938f00434c7..a65a729b1f62d9202d6ca982fdf655a3fd98dd9f 100644 (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();