Cargo clippy
This commit is contained in:
parent
83e6871997
commit
31949bf414
@ -10,9 +10,9 @@ use crate::utils::network_utils::get_remote_ip;
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct RemoteIP(pub IpAddr);
|
||||
|
||||
impl Into<IpAddr> for RemoteIP {
|
||||
fn into(self) -> IpAddr {
|
||||
self.0
|
||||
impl From<RemoteIP> for IpAddr {
|
||||
fn from(i: RemoteIP) -> Self {
|
||||
i.0
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user