From 9c02c37b18a5260f9e5f12b576d2b5d072220030 Mon Sep 17 00:00:00 2001 From: Damian Date: Fri, 20 Dec 2019 20:56:42 +0100 Subject: Fixed clippy warnings --- src/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 8fde78a..2e28e30 100644 --- a/src/args.rs +++ b/src/args.rs @@ -108,8 +108,8 @@ fn parse_auth(src: &str) -> Result { }; match second_part { - "sha256" => auth::RequiredAuthPassword::Sha256(hash_bin.to_owned()), - "sha512" => auth::RequiredAuthPassword::Sha512(hash_bin.to_owned()), + "sha256" => auth::RequiredAuthPassword::Sha256(hash_bin), + "sha512" => auth::RequiredAuthPassword::Sha512(hash_bin), _ => return Err(ContextualError::InvalidHashMethod(second_part.to_owned())), } } else { -- cgit v1.2.3