aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/path.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-06 21:12:53 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-06 21:12:53 +0200
commit5503b945cc9ec274ae3d859330767e1088b13a52 (patch)
tree24e8fce1a38bb2fa69f5eb6038d6bc5144372122 /askama_shared/src/path.rs
parentf58e26c740db84b27c36d3c20a234ee31a24bd75 (diff)
downloadaskama-5503b945cc9ec274ae3d859330767e1088b13a52.tar.gz
askama-5503b945cc9ec274ae3d859330767e1088b13a52.tar.bz2
askama-5503b945cc9ec274ae3d859330767e1088b13a52.zip
Code cleanups as suggested by Clippy
Diffstat (limited to '')
-rw-r--r--askama_shared/src/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/path.rs b/askama_shared/src/path.rs
index 86bf6d7..80e364f 100644
--- a/askama_shared/src/path.rs
+++ b/askama_shared/src/path.rs
@@ -10,7 +10,7 @@ pub fn get_template_source(tpl_path: &Path) -> String {
Err(_) => {
let msg = format!("unable to open template file '{}'",
&path.to_str().unwrap());
- panic!(msg);
+ panic!(msg)
},
Ok(f) => f,
};
@@ -22,7 +22,7 @@ pub fn get_template_source(tpl_path: &Path) -> String {
s
}
-pub fn find_template_from_path<'a>(path: &str, start_at: Option<&Path>) -> PathBuf {
+pub fn find_template_from_path(path: &str, start_at: Option<&Path>) -> PathBuf {
let root = template_dir();
if let Some(rel) = start_at {
let mut fs_rel_path = root.clone();