Skip to content

Commit 0303df0

Browse files
committed
Format
1 parent a0a8442 commit 0303df0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/rustfmt/src/test/configuration_snippet.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ impl ConfigurationSection {
4242
return Some(ConfigurationSection::CodeBlock((block, start_line)));
4343
} else if let Some(c) = static_regex!(r"^## `([^`]+)`").captures(&line) {
4444
return Some(ConfigurationSection::ConfigName(String::from(&c[1])));
45-
} else if let Some(c) = static_regex!(r#"^#### `"?([^`]+?)"?`"#).captures(&line) {
45+
} else if let Some(c) = static_regex!(r#"^#### `"?([^`]+?)"?`"#).captures(&line)
46+
{
4647
// Configuration values, which will be passed to `from_str`
4748
//
4849
// - must be prefixed with `####`

0 commit comments

Comments
 (0)