[pbs-devel] [PATCH proxmox 08/15] clippy fix: you should consider adding a `Default` implementation
Lukas Wagner
l.wagner at proxmox.com
Tue Aug 8 10:01:46 CEST 2023
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
proxmox-openid/src/lib.rs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/proxmox-openid/src/lib.rs b/proxmox-openid/src/lib.rs
index c2b73c9..a65a729 100644
--- a/proxmox-openid/src/lib.rs
+++ b/proxmox-openid/src/lib.rs
@@ -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();
--
2.39.2
More information about the pbs-devel
mailing list