From: Jason Ish Date: Mon, 3 Oct 2022 21:28:50 +0000 (-0600) Subject: rust: fix clippy lint for borrow_deref_ref X-Git-Tag: suricata-7.0.0-beta1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94dd85baed92d4a5a0bb941f21239a3596d20a9c;p=thirdparty%2Fsuricata.git rust: fix clippy lint for borrow_deref_ref This type of borrow then reference has no effect. --- 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),