diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-11-21 20:53:57 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-11-21 20:57:56 +0100 |
commit | 83cc6e0ca3e9878c47593ab737e6bf106ea062db (patch) | |
tree | e3ec5ac6d25c5835792d7fdc094253ab2fade059 /askama_shared/src/path.rs | |
parent | 958680aee0fc2d58200382223937e8123fae7459 (diff) | |
download | askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.gz askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.bz2 askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.zip |
Apply suggestions from rustfmt to improve style
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/path.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/askama_shared/src/path.rs b/askama_shared/src/path.rs index 80e364f..f7a3762 100644 --- a/askama_shared/src/path.rs +++ b/askama_shared/src/path.rs @@ -8,8 +8,7 @@ pub fn get_template_source(tpl_path: &Path) -> String { path.push(tpl_path); let mut f = match File::open(&path) { Err(_) => { - let msg = format!("unable to open template file '{}'", - &path.to_str().unwrap()); + let msg = format!("unable to open template file '{}'", &path.to_str().unwrap()); panic!(msg) }, Ok(f) => f, |