Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-25 05:40:29 +01:00
Remove unecessary clone
Dieser Commit ist enthalten in:
Ursprung
2d2745195e
Commit
672a245548
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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`"),
|
||||||
|
|
Laden …
In neuem Issue referenzieren