From e021e027ba1f1f5220a4b4a4140277f82152777a Mon Sep 17 00:00:00 2001 From: vallentin Date: Mon, 22 Feb 2021 02:48:14 +0100 Subject: Removed needless borrow of range --- askama_shared/src/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'askama_shared/src') 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. -- cgit