From 6aa485ec0892125e9b67085afb400bc9e27e6a8d Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 2 Sep 2018 16:02:10 +0200 Subject: Fix formatting with cargo fmt --- askama_shared/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'askama_shared/src/lib.rs') 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("") } -- cgit