refactor(config): remove map to Unit
It is unnecessary, because the result is dropped anyway.
This commit is contained in:
parent
f192034a2b
commit
cf74883227
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user