Skip to content

Commit c755f78

Browse files
committed
remove uncessary parens in emit
1 parent ccdf053 commit c755f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_errors/src/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ pub fn is_case_difference(sm: &SourceMap, suggested: &str, sp: Span) -> bool {
34493449
// All the chars that differ in capitalization are confusable (above):
34503450
let confusable = iter::zip(found.chars(), suggested.chars())
34513451
.filter(|(f, s)| f != s)
3452-
.all(|(f, s)| (ascii_confusables.contains(&f) || ascii_confusables.contains(&s)));
3452+
.all(|(f, s)| ascii_confusables.contains(&f) || ascii_confusables.contains(&s));
34533453
confusable && found.to_lowercase() == suggested.to_lowercase()
34543454
// FIXME: We sometimes suggest the same thing we already have, which is a
34553455
// bug, but be defensive against that here.

0 commit comments

Comments
 (0)