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:
Lukas Wagner 2023-08-08 10:01:53 +02:00 committed by Wolfgang Bumiller
parent a36769b11a
commit 41b2e49123

View File

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