Suppress range_plus_one lint
I find this easier to understand in combination with the line right after.
This commit is contained in:
parent
938bcec8f9
commit
f866fa9a71
|
@ -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('{');
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue