Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-04-05 17:18:41 +02:00
parent 83e6871997
commit 31949bf414

View File

@ -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
}
}