aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-02-03 14:55:33 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-02-03 18:09:55 +0100
commit2d457f54f50de8a9430f1e6e3da42244957911d1 (patch)
treef4c95ace64ebe9befbb13fbe5ca0c84461d8f416 /askama_derive
parenta480c25efe8ddc9c0d6a6a9e3c990ce730c315e4 (diff)
downloadaskama-2d457f54f50de8a9430f1e6e3da42244957911d1.tar.gz
askama-2d457f54f50de8a9430f1e6e3da42244957911d1.tar.bz2
askama-2d457f54f50de8a9430f1e6e3da42244957911d1.zip
Replace custom Cow with actual Cow
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs
index cc50ac8..4d81433 100644
--- a/askama_derive/src/lib.rs
+++ b/askama_derive/src/lib.rs
@@ -86,13 +86,14 @@ fn find_used_templates(
let extends = input.config.find_template(extends, Some(&path))?;
let dependency_path = (path.clone(), extends.clone());
if dependency_graph.contains(&dependency_path) {
- return Err(CompileError::String(format!(
+ return Err(format!(
"cyclic dependecy in graph {:#?}",
dependency_graph
.iter()
.map(|e| format!("{:#?} --> {:#?}", e.0, e.1))
.collect::<Vec<String>>()
- )));
+ )
+ .into());
}
dependency_graph.push(dependency_path);
let source = get_template_source(&extends)?;