From 0303df080d5cce7f80dfe24b4c62ce268e508298 Mon Sep 17 00:00:00 2001 From: George Bateman Date: Sun, 28 Apr 2024 14:59:35 +0100 Subject: [PATCH] Format --- src/tools/rustfmt/src/test/configuration_snippet.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/rustfmt/src/test/configuration_snippet.rs b/src/tools/rustfmt/src/test/configuration_snippet.rs index a195b306da386..d63cd9856088e 100644 --- a/src/tools/rustfmt/src/test/configuration_snippet.rs +++ b/src/tools/rustfmt/src/test/configuration_snippet.rs @@ -42,7 +42,8 @@ impl ConfigurationSection { return Some(ConfigurationSection::CodeBlock((block, start_line))); } else if let Some(c) = static_regex!(r"^## `([^`]+)`").captures(&line) { return Some(ConfigurationSection::ConfigName(String::from(&c[1]))); - } else if let Some(c) = static_regex!(r#"^#### `"?([^`]+?)"?`"#).captures(&line) { + } else if let Some(c) = static_regex!(r#"^#### `"?([^`]+?)"?`"#).captures(&line) + { // Configuration values, which will be passed to `from_str` // // - must be prefixed with `####`