Skip to content

Commit

Permalink
Merge pull request #3943 from rust-lang/clippy-fix
Browse files Browse the repository at this point in the history
infra: Fix clippy warning in remove_markup
  • Loading branch information
chriskrycho authored May 27, 2024
2 parents e75fe2c + 3398f72 commit cfe8c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tools/src/bin/remove_markup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn remove_markup(input: String) -> String {
let caption_start_regex =
Regex::new(r#"\A<span class="caption">(.*)\z"#).unwrap();
let caption_end_regex = Regex::new(r#"(.*)</span>\z"#).unwrap();
let regexen = vec![filename_regex, caption_start_regex, caption_end_regex];
let regexen = [filename_regex, caption_start_regex, caption_end_regex];

let lines: Vec<_> = input
.lines()
Expand Down

0 comments on commit cfe8c33

Please # to comment.