refactor(config): remove map to Unit

It is unnecessary, because the result is dropped anyway.
This commit is contained in:
Philipp Matthias Schaefer 2021-03-14 09:19:31 +01:00
parent f192034a2b
commit cf74883227

View File

@ -66,7 +66,6 @@ pub fn load(file_path: &str) -> Result<Config> {
Handlebars::new()
.render_template(&config.dn, &json!({"username" : "foo"}))
.map(|_| ())
.with_context(|| format!(
"Failed to render DN ({}) from configuration file '{}'",
config.dn,