rust: fix clippy lint for borrow_deref_ref

This type of borrow then reference has no effect.
pull/7966/head
Jason Ish 2 years ago committed by Victor Julien
parent e9597f3d0c
commit 94dd85baed

@ -121,7 +121,7 @@ trait MyFromStr {
impl MyFromStr for EncryptionType {
fn from_str(s: &str) -> Result<Self, String> {
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),

Loading…
Cancel
Save