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)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct RemoteIP(pub IpAddr);
|
pub struct RemoteIP(pub IpAddr);
|
||||||
|
|
||||||
impl Into<IpAddr> for RemoteIP {
|
impl From<RemoteIP> for IpAddr {
|
||||||
fn into(self) -> IpAddr {
|
fn from(i: RemoteIP) -> Self {
|
||||||
self.0
|
i.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user