fmt and clippy fix
This commit is contained in:
parent
33f47dbe68
commit
794c4c6a7a
|
@ -316,7 +316,7 @@ impl Serialize for Status {
|
|||
Status::ServerUpdateProhibited => "serverUpdateProhibited",
|
||||
};
|
||||
|
||||
serializer.serialize_str(&enum_str)
|
||||
serializer.serialize_str(enum_str)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ impl<'de> Deserialize<'de> for ContactStatusWithEnum {
|
|||
_ => return Err("Status Deserialization Error").map_err(DeError::custom),
|
||||
};
|
||||
|
||||
Ok(ContactStatusWithEnum { status: status })
|
||||
Ok(ContactStatusWithEnum { status })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@ use epp_client_macros::*;
|
|||
|
||||
use super::XMLNS;
|
||||
use crate::common::{
|
||||
ContactAuthInfo, ContactStatusWithEnum, ElementName, NoExtension, Phone, PostalInfo, StringValue,
|
||||
ContactAuthInfo, ContactStatusWithEnum, ElementName, NoExtension, Phone, PostalInfo,
|
||||
StringValue,
|
||||
};
|
||||
use crate::request::{EppExtension, EppRequest};
|
||||
use crate::response::EppCommandResponse;
|
||||
|
@ -36,7 +37,7 @@ impl<E: EppExtension> EppRequest<E> for ContactUpdate<E> {
|
|||
/// use epp_client::EppClient;
|
||||
/// use epp_client::contact::update::ContactUpdate;
|
||||
/// use epp_client::generate_client_tr_id;
|
||||
/// use epp_client::common::ContactStatus;
|
||||
/// use epp_client::common::ContactStatusWithExtension;
|
||||
/// use epp_client::common::NoExtension;
|
||||
///
|
||||
/// #[tokio::main]
|
||||
|
@ -68,8 +69,8 @@ impl<E: EppExtension> EppRequest<E> for ContactUpdate<E> {
|
|||
/// );
|
||||
///
|
||||
/// let add_statuses = vec![
|
||||
/// ContactStatus {
|
||||
/// status: "clientTransferProhibited".to_string()
|
||||
/// ContactStatusWithExtension {
|
||||
/// status: Status::ClientTransferProhibited,
|
||||
/// }
|
||||
/// ];
|
||||
///
|
||||
|
|
|
@ -8,8 +8,8 @@ mod request {
|
|||
use crate::common::HostObjList;
|
||||
use crate::common::NoExtension;
|
||||
use crate::common::{
|
||||
Address, ContactStatusWithEnum, Status, DomainAuthInfo, DomainContact, DomainStatus, HostAddr, HostAttr,
|
||||
HostStatus, Phone, PostalInfo,
|
||||
Address, ContactStatusWithEnum, DomainAuthInfo, DomainContact, DomainStatus, HostAddr,
|
||||
HostAttr, HostStatus, Phone, PostalInfo, Status,
|
||||
};
|
||||
use crate::contact::check::ContactCheck;
|
||||
use crate::contact::create::ContactCreate;
|
||||
|
|
Loading…
Reference in New Issue