[pbs-devel] [PATCH v2 backup 5/5] clippy fixes: deref which would be done by auto-deref

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Jun 16 10:27:31 CEST 2023


This unnecessarily complicates the code.

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 src/auth.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/auth.rs b/src/auth.rs
index 432bdb2c..e8d8d2da 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -266,11 +266,11 @@ pub fn setup_auth_context(use_private_key: bool) {
 }
 
 pub(crate) fn private_auth_keyring() -> &'static Keyring {
-    &*PRIVATE_KEYRING
+    &PRIVATE_KEYRING
 }
 
 pub(crate) fn public_auth_keyring() -> &'static Keyring {
-    &*PUBLIC_KEYRING
+    &PUBLIC_KEYRING
 }
 
 struct PbsAuthContext {
-- 
2.39.2






More information about the pbs-devel mailing list