Suppress range_plus_one lint

I find this easier to understand in combination with the line right
after.
This commit is contained in:
David Tolnay 2019-11-30 00:51:41 -08:00
parent 938bcec8f9
commit f866fa9a71
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ impl Display<'_> {
let mut has_bonus_display = false;
while let Some(brace) = read.find('{') {
out += &read[..=brace];
out += &read[..brace + 1];
read = &read[brace + 1..];
if read.starts_with('{') {
out.push('{');

View File

@ -1,4 +1,4 @@
#![allow(clippy::block_in_if_condition_stmt)]
#![allow(clippy::block_in_if_condition_stmt, clippy::range_plus_one)]
extern crate proc_macro;