diff options
| author | 2021-02-22 02:48:14 +0100 | |
|---|---|---|
| committer | 2021-02-22 13:05:44 +0100 | |
| commit | e021e027ba1f1f5220a4b4a4140277f82152777a (patch) | |
| tree | a0ea87fc2fc0a78d1da40ff93185997f56872c94 /askama_shared/src | |
| parent | cfcda7b0e996944da78f00d00c0ef8cf65ea4035 (diff) | |
| download | askama-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.rs | 1 | 
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. | 
