clippy: fix new warning

This commit is contained in:
Valentin Tolmer 2023-03-17 17:59:25 +01:00 committed by nitnelave
parent c817b31dfc
commit 313fe3e0b7

View File

@ -16,19 +16,14 @@ use yew_router::{
route::Route, route::Route,
}; };
#[derive(PartialEq, Eq)] #[derive(PartialEq, Eq, Default)]
enum OpaqueData { enum OpaqueData {
#[default]
None, None,
Login(opaque::client::login::ClientLogin), Login(opaque::client::login::ClientLogin),
Registration(opaque::client::registration::ClientRegistration), Registration(opaque::client::registration::ClientRegistration),
} }
impl Default for OpaqueData {
fn default() -> Self {
OpaqueData::None
}
}
impl OpaqueData { impl OpaqueData {
fn take(&mut self) -> Self { fn take(&mut self) -> Self {
std::mem::take(self) std::mem::take(self)