forked from Proxmox/proxmox
clippy fix: deref on an immutable reference
See: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
a36769b11a
commit
41b2e49123
@ -106,7 +106,7 @@ pub trait PeerAddress {
|
||||
// Pin<Box<T>>
|
||||
impl<T: PeerAddress> PeerAddress for Pin<Box<T>> {
|
||||
fn peer_addr(&self) -> Result<std::net::SocketAddr, Error> {
|
||||
T::peer_addr(&*self)
|
||||
T::peer_addr(&**self)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user