From 9af7e9a9abdab873e4442519e2a7254536337d0a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 15 Feb 2019 20:37:30 +0100 Subject: [PATCH] Remove unused variable Signed-off-by: Matthias Beyer --- lib/core/libimagrt/src/logger.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/libimagrt/src/logger.rs b/lib/core/libimagrt/src/logger.rs index e9526a35..fa6c8c28 100644 --- a/lib/core/libimagrt/src/logger.rs +++ b/lib/core/libimagrt/src/logger.rs @@ -98,7 +98,7 @@ impl ImagLogger { Ok(ImagLogger { global_loglevel : aggregate_global_loglevel(matches, config)?, - global_destinations : aggregate_global_destinations(matches, config)?, + global_destinations : aggregate_global_destinations(config)?, module_settings : aggregate_module_settings(matches, config)?, handlebars : handlebars, }) @@ -273,7 +273,7 @@ fn translate_destinations(raw: &Vec) -> Result> { .collect() } -fn aggregate_global_destinations(matches: &ArgMatches, config: Option<&Value>) +fn aggregate_global_destinations(config: Option<&Value>) -> Result> { match config {