Skip to content

Commit

Permalink
Restore compatibility with rustc pre 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 12, 2022
1 parent 9971140 commit 9b7663f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ fn replace_case_insensitive(line: &str, pattern: &str, replacement: &str) -> Str
}
let mut keep = &line[pos..pos + keep.len()];
if insert_replacement {
let end_of_maybe_path = keep.find([' ', ':'].as_slice()).unwrap_or(keep.len());
let end_of_maybe_path = keep.find(&[' ', ':'][..]).unwrap_or(keep.len());
replaced.push_str(&keep[..end_of_maybe_path].replace('\\', "/"));
pos += end_of_maybe_path;
keep = &keep[end_of_maybe_path..];
Expand Down

0 comments on commit 9b7663f

Please sign in to comment.