aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar vallentin <mail@vallentin.dev>2021-02-22 02:48:14 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-02-22 13:05:44 +0100
commite021e027ba1f1f5220a4b4a4140277f82152777a (patch)
treea0ea87fc2fc0a78d1da40ff93185997f56872c94 /askama_shared
parentcfcda7b0e996944da78f00d00c0ef8cf65ea4035 (diff)
downloadaskama-e021e027ba1f1f5220a4b4a4140277f82152777a.tar.gz
askama-e021e027ba1f1f5220a4b4a4140277f82152777a.tar.bz2
askama-e021e027ba1f1f5220a4b4a4140277f82152777a.zip
Removed needless borrow of range
Diffstat (limited to '')
-rw-r--r--askama_shared/src/parser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs
index 80f766a..b91934b 100644
--- a/askama_shared/src/parser.rs
+++ b/askama_shared/src/parser.rs
@@ -66,6 +66,7 @@ impl Expr<'_> {
BinOp(_, lhs, rhs) => {
lhs.is_copyable_within_op(true) && rhs.is_copyable_within_op(true)
}
+ Range(..) => true,
// The result of a call likely doesn't need to be borrowed,
// as in that case the call is more likely to return a
// reference in the first place then.