From e5fa71d1e7e024421d4fd4c09b16692849741da3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 3 Jun 2017 14:46:28 +0200 Subject: [PATCH] Minify mapping --- libimagrt/src/configuration.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index 0487fc94..80bf50c6 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -128,13 +128,11 @@ impl Configuration { v.into_iter() .map(|s| { debug!("Trying to process '{}'", s); s }) - .filter_map(|s| { - match s.into_kv() { - Some(kv) => Some(kv.into()), - None => { - warn!("Could split at '=' - will be ignore override"); - None - } + .filter_map(|s| match s.into_kv() { + Some(kv) => Some(kv.into()), + None => { + warn!("Could split at '=' - will be ignore override"); + None } }) .map(|(k, v)| {