cargo fmt

This commit is contained in:
holger krekel
2019-10-06 01:41:47 +02:00
parent 22b4d1734c
commit 3f053f899e

View File

@@ -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();