mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
Update src/mimefactory.rs
Co-Authored-By: Alexander Krotov <ilabdsf@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user