Skip to content

Commit

Permalink
Suppress range_plus_one lint
Browse files Browse the repository at this point in the history
I find this easier to understand in combination with the line right
after.
  • Loading branch information
dtolnay committed Nov 30, 2019
1 parent 938bcec commit f866fa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion impl/src/fmt.rs
Expand Up @@ -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('{');
Expand Down
2 changes: 1 addition & 1 deletion impl/src/lib.rs
@@ -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;

Expand Down

0 comments on commit f866fa9

Please sign in to comment.