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()
|
Handlebars::new()
|
||||||
.render_template(&config.dn, &json!({"username" : "foo"}))
|
.render_template(&config.dn, &json!({"username" : "foo"}))
|
||||||
.map(|_| ())
|
|
||||||
.with_context(|| format!(
|
.with_context(|| format!(
|
||||||
"Failed to render DN ({}) from configuration file '{}'",
|
"Failed to render DN ({}) from configuration file '{}'",
|
||||||
config.dn,
|
config.dn,
|
||||||
|
Loading…
Reference in New Issue
Block a user