From 313fe3e0b7f9411d9d9a28a7d1829719179d3742 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Fri, 17 Mar 2023 17:59:25 +0100 Subject: [PATCH] clippy: fix new warning --- app/src/components/change_password.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/components/change_password.rs b/app/src/components/change_password.rs index eabec53..dd43369 100644 --- a/app/src/components/change_password.rs +++ b/app/src/components/change_password.rs @@ -16,19 +16,14 @@ use yew_router::{ route::Route, }; -#[derive(PartialEq, Eq)] +#[derive(PartialEq, Eq, Default)] enum OpaqueData { + #[default] None, Login(opaque::client::login::ClientLogin), Registration(opaque::client::registration::ClientRegistration), } -impl Default for OpaqueData { - fn default() -> Self { - OpaqueData::None - } -} - impl OpaqueData { fn take(&mut self) -> Self { std::mem::take(self)