[pbs-devel] [PATCH proxmox 15/15] clippy fix: deref on an immutable reference

Lukas Wagner l.wagner at proxmox.com
Tue Aug 8 10:01:53 CEST 2023


See:
https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 proxmox-rest-server/src/rest.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-rest-server/src/rest.rs b/proxmox-rest-server/src/rest.rs
index 252532a..0ee9fab 100644
--- a/proxmox-rest-server/src/rest.rs
+++ b/proxmox-rest-server/src/rest.rs
@@ -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)
     }
 }
 
-- 
2.39.2






More information about the pbs-devel mailing list