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,
};
#[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)