Thanks clippy!

This commit is contained in:
Mo 2022-10-29 17:12:50 +02:00
parent a1b5d43ac5
commit f3f5ce5145

View file

@ -50,8 +50,8 @@ impl Mailer {
let subject = "Message from ".to_string() + &name;
let body = if telefon.len() > 0 {
message + "\n\nTelefon: " + &telefon
let body = if !telefon.is_empty() {
message + "\n\nTelefon: " + telefon
} else {
message
};