From ca6706711ebb2c0306d49467406c65073753c16f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 8 Oct 2018 11:12:57 +0200 Subject: Fix formatting --- askama_shared/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 92b5d28..56b7868 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -41,8 +41,13 @@ impl<'a> Config<'a> { toml::from_str(&s).expect(&format!("invalid TOML in {}", CONFIG_FILE_NAME)); let (dirs, default_syntax) = match raw.general { - Some(General { dirs, default_syntax }) => ( - dirs.map_or(default_dirs, |v| v.into_iter().map(|dir| root.join(dir)).collect()), + Some(General { + dirs, + default_syntax, + }) => ( + dirs.map_or(default_dirs, |v| { + v.into_iter().map(|dir| root.join(dir)).collect() + }), default_syntax.unwrap_or(DEFAULT_SYNTAX_NAME), ), None => (default_dirs, DEFAULT_SYNTAX_NAME), -- cgit