mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
cargo fmt
This commit is contained in:
@@ -737,9 +737,7 @@ impl<'a> MimeParser<'a> {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if desired_filename.starts_with("location")
|
||||
&& desired_filename.ends_with(".kml")
|
||||
{
|
||||
if desired_filename.starts_with("location") && desired_filename.ends_with(".kml") {
|
||||
if !decoded_data.is_empty() {
|
||||
let d = std::string::String::from_utf8_lossy(&decoded_data);
|
||||
self.location_kml = location::Kml::parse(self.context, &d).ok();
|
||||
|
||||
Reference in New Issue
Block a user