diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-08 11:12:57 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-08 11:12:57 +0200 |
commit | ca6706711ebb2c0306d49467406c65073753c16f (patch) | |
tree | 1fe82a8035efa08f19b00e22e213e78f78dc5a9b /askama_shared | |
parent | 4498ddd445a37c3d88c6032830856522fea39a8e (diff) | |
download | askama-ca6706711ebb2c0306d49467406c65073753c16f.tar.gz askama-ca6706711ebb2c0306d49467406c65073753c16f.tar.bz2 askama-ca6706711ebb2c0306d49467406c65073753c16f.zip |
Fix formatting
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
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), |