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

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Jun 16 09:35:41 CEST 2023


https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
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