]> git.proxmox.com Git - proxmox.git/commitdiff
clippy fix: deref on an immutable reference
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 8 Aug 2023 08:01:53 +0000 (10:01 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Aug 2023 09:29:36 +0000 (11:29 +0200)
See:
https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-rest-server/src/rest.rs

index 252532a8e29c9ff2336a5522f67e1414284329c9..0ee9fabc4a54c7e2c235a7d75a52a7a189c9aa8e 100644 (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)
     }
 }