Thanks clippy!
This commit is contained in:
parent
a1b5d43ac5
commit
f3f5ce5145
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ impl Mailer {
|
||||||
|
|
||||||
let subject = "Message from ".to_string() + &name;
|
let subject = "Message from ".to_string() + &name;
|
||||||
|
|
||||||
let body = if telefon.len() > 0 {
|
let body = if !telefon.is_empty() {
|
||||||
message + "\n\nTelefon: " + &telefon
|
message + "\n\nTelefon: " + telefon
|
||||||
} else {
|
} else {
|
||||||
message
|
message
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue