0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-17 07:22:04 +01:00

Remove unecessary clone

This commit is contained in:
ViViDboarder 2019-08-27 10:40:38 -07:00
parent 2d2745195e
commit 672a245548

View file

@ -42,7 +42,7 @@ fn mailer() -> SmtpTransport {
let smtp_client = match &CONFIG.smtp_auth_mechanism() { let smtp_client = match &CONFIG.smtp_auth_mechanism() {
Some(auth_mechanism_json) => { 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 { match auth_mechanism {
Ok(auth_mechanism) => smtp_client.authentication_mechanism(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`"), Err(_) => panic!("Failure to parse mechanism. Is it proper Json? Eg. `\"Plain\"` not `Plain`"),