From cf74883227c4e216799c67600ef2d2429d8365c3 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sun, 14 Mar 2021 09:19:31 +0100 Subject: [PATCH] refactor(config): remove map to Unit It is unnecessary, because the result is dropped anyway. --- src/config.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index ad32be7..56b9943 100644 --- a/src/config.rs +++ b/src/config.rs @@ -66,7 +66,6 @@ pub fn load(file_path: &str) -> Result { Handlebars::new() .render_template(&config.dn, &json!({"username" : "foo"})) - .map(|_| ()) .with_context(|| format!( "Failed to render DN ({}) from configuration file '{}'", config.dn,