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