Minify mapping

This commit is contained in:
Matthias Beyer 2017-06-03 14:46:28 +02:00
parent 1e06b90eea
commit e5fa71d1e7

View file

@ -128,13 +128,11 @@ impl Configuration {
v.into_iter() v.into_iter()
.map(|s| { debug!("Trying to process '{}'", s); s }) .map(|s| { debug!("Trying to process '{}'", s); s })
.filter_map(|s| { .filter_map(|s| match s.into_kv() {
match s.into_kv() { Some(kv) => Some(kv.into()),
Some(kv) => Some(kv.into()), None => {
None => { warn!("Could split at '=' - will be ignore override");
warn!("Could split at '=' - will be ignore override"); None
None
}
} }
}) })
.map(|(k, v)| { .map(|(k, v)| {