Update src/mimefactory.rs

Co-Authored-By: Alexander Krotov <ilabdsf@gmail.com>
This commit is contained in:
bjoern
2020-01-12 21:28:46 +01:00
committed by holger krekel
parent d7c07e0ed3
commit 614ec30e05

View File

@@ -347,7 +347,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
self.context,
);
let mut lines = raw.lines();
let raw_subject = if let Some(line) = lines.next() {
let raw_subject = raw.lines().next().unwrap_or_default();
line
} else {
""