From 94dd85baed92d4a5a0bb941f21239a3596d20a9c Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 3 Oct 2022 15:28:50 -0600 Subject: [PATCH] rust: fix clippy lint for borrow_deref_ref This type of borrow then reference has no effect. --- rust/src/krb/detect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/krb/detect.rs b/rust/src/krb/detect.rs index cde061ed3a..7f408088ea 100644 --- a/rust/src/krb/detect.rs +++ b/rust/src/krb/detect.rs @@ -121,7 +121,7 @@ trait MyFromStr { impl MyFromStr for EncryptionType { fn from_str(s: &str) -> Result { - let su_slice: &str = &*s; + let su_slice: &str = s; match su_slice { "des-cbc-crc" => Ok(EncryptionType::DES_CBC_CRC), "des-cbc-md4" => Ok(EncryptionType::DES_CBC_MD4), -- 2.47.2