aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-09-02 16:02:10 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-09-02 16:02:10 +0200
commit6aa485ec0892125e9b67085afb400bc9e27e6a8d (patch)
tree6ae6542c20b7dccaba66244505666f3546217720 /askama_shared
parentf29c12f469ccb76ed06aff6d6dc037dfd7dd2406 (diff)
downloadaskama-6aa485ec0892125e9b67085afb400bc9e27e6a8d.tar.gz
askama-6aa485ec0892125e9b67085afb400bc9e27e6a8d.tar.bz2
askama-6aa485ec0892125e9b67085afb400bc9e27e6a8d.zip
Fix formatting with cargo fmt
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 2b82782..ad8a1b5 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -27,8 +27,10 @@ impl Config {
let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
let filename = root.join(CONFIG_FILE_NAME);
if filename.exists() {
- Self::from_str(&fs::read_to_string(&filename)
- .expect(&format!("unable to read {}", filename.to_str().unwrap())))
+ Self::from_str(
+ &fs::read_to_string(&filename)
+ .expect(&format!("unable to read {}", filename.to_str().unwrap())),
+ )
} else {
Self::from_str("")
}