aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-14 20:40:48 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-14 20:40:48 +0200
commitd83959d976d69d6de3bbd150c5cc46556456a824 (patch)
treed3e3bff664f23bd92757c4a1c59637adce9e9af8 /askama_derive/src
parent5f3e93da3f1815f24b82b026b95e748267d1b5e8 (diff)
downloadaskama-d83959d976d69d6de3bbd150c5cc46556456a824.tar.gz
askama-d83959d976d69d6de3bbd150c5cc46556456a824.tar.bz2
askama-d83959d976d69d6de3bbd150c5cc46556456a824.zip
Assert invariant for SetChain implementation
Diffstat (limited to 'askama_derive/src')
-rw-r--r--askama_derive/src/generator.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index b00094d..75e4a2d 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -589,5 +589,6 @@ impl<'a, T: 'a> SetChain<'a, T> where T: cmp::Eq + hash::Hash {
}
fn pop(&mut self) {
self.scopes.pop().unwrap();
+ assert!(self.scopes.len() > 0);
}
}