From 672a2455481d52ffc6d0499ec110e0e02269884b Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 27 Aug 2019 10:40:38 -0700 Subject: [PATCH] Remove unecessary clone --- src/mail.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mail.rs b/src/mail.rs index 810f751..a9edc23 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -42,7 +42,7 @@ fn mailer() -> SmtpTransport { let smtp_client = match &CONFIG.smtp_auth_mechanism() { Some(auth_mechanism_json) => { - let auth_mechanism = serde_json::from_str::(&auth_mechanism_json.clone()); + let auth_mechanism = serde_json::from_str::(&auth_mechanism_json); match auth_mechanism { Ok(auth_mechanism) => smtp_client.authentication_mechanism(auth_mechanism), Err(_) => panic!("Failure to parse mechanism. Is it proper Json? Eg. `\"Plain\"` not `Plain`"),