commit 672a2455481d52ffc6d0499ec110e0e02269884b
parent 2d2745195e8426bd2d63a4ab233c37c04852a356
Author: ViViDboarder <ViViDboarder@gmail.com>
Date: Tue, 27 Aug 2019 10:40:38 -0700
Remove unecessary clone
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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::<SmtpAuthMechanism>(&auth_mechanism_json.clone());
+ let auth_mechanism = serde_json::from_str::<SmtpAuthMechanism>(&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`"),