aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser.rs
diff options
context:
space:
mode:
authorLibravatar Bardi Harborow <bardi@bardiharborow.com>2019-07-12 04:43:41 +1000
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-07-11 21:49:56 +0200
commit5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a (patch)
tree1751b688ca625f5933df76b47747a685510f3909 /askama_derive/src/parser.rs
parent4bd29679c022a56b9fa8790d9095cdf8b0ee19b8 (diff)
downloadaskama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.tar.gz
askama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.tar.bz2
askama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.zip
Implement selected clippy recommendations.
Diffstat (limited to 'askama_derive/src/parser.rs')
-rw-r--r--askama_derive/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs
index a37a112..b8fa94d 100644
--- a/askama_derive/src/parser.rs
+++ b/askama_derive/src/parser.rs
@@ -117,7 +117,7 @@ fn split_ws_parts(s: &[u8]) -> Node {
(&s[..start], &s[start..], &s[0..0])
} else {
let end = end.unwrap();
- (&s[..start], &s[start..end + 1], &s[end + 1..])
+ (&s[..start], &s[start..=end], &s[end + 1..])
}
};
Node::Lit(