mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
Removed needless borrow of range
This commit is contained in:
parent
cfcda7b0e9
commit
e021e027ba
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user