mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
clippy: fix new warning
This commit is contained in:
parent
c817b31dfc
commit
313fe3e0b7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user