Skip to content

Commit

Permalink
format style.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
donno2048 authored Apr 17, 2024
1 parent 8d08708 commit e06f90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/tidy/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn generate_problematic_strings(
) -> Vec<String> {
generate_problems(consts, letter_digit)
.flat_map(|v| vec![v.to_string(), format!("{:x}", v), format!("{:X}", v)])
.collect()
.collect()
}

const INTERNAL_COMPILER_DOCS_LINE: &str = "#### This error code is internal to the compiler and will not be emitted with normal Rust code.";
Expand Down Expand Up @@ -316,7 +316,7 @@ pub fn check(path: &Path, bad: &mut bool) {
ROOT_PROBLEMATIC_CONSTS,
&[('A', '4'), ('B', '8'), ('E', '3')].iter().cloned().collect(),
);
let problematic_regex = RegexSet::new(problematic_consts_strings.as_slice()).unwrap();
let problematic_regex = RegexSet::new(problematic_consts_strings.as_slice()).unwrap();

walk(path, skip, &mut |entry, contents| {
let file = entry.path();
Expand Down

0 comments on commit e06f90f

Please sign in to comment.