about summary refs log tree commit diff
diff options
context:
space:
mode:
authortopecongiro <seuchida@gmail.com>2018-02-24 01:18:53 +0900
committertopecongiro <seuchida@gmail.com>2018-02-24 01:18:53 +0900
commitb080e79a2fdb3c52ad76197eec9278ea0b3b40d0 (patch)
tree1f674a6a0694b1cb5362def4581576061ec8309a
parentf310b924ea6a26d6122ffe96b9d36327aa542be7 (diff)
Cargo fmt
-rw-r--r--rustfmt-core/tests/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/rustfmt-core/tests/lib.rs b/rustfmt-core/tests/lib.rs
index f219cf3212b..b15dc417106 100644
--- a/rustfmt-core/tests/lib.rs
+++ b/rustfmt-core/tests/lib.rs
@@ -623,8 +623,10 @@ impl ConfigurationSection {
         file: &mut Enumerate<I>,
     ) -> Option<ConfigurationSection> {
         lazy_static! {
-            static ref CONFIG_NAME_REGEX: regex::Regex = regex::Regex::new(r"^## `([^`]+)`").expect("Failed creating configuration pattern");
-            static ref CONFIG_VALUE_REGEX: regex::Regex = regex::Regex::new(r#"^#### `"?([^`"]+)"?`"#).expect("Failed creating configuration value pattern");
+            static ref CONFIG_NAME_REGEX: regex::Regex =
+                regex::Regex::new(r"^## `([^`]+)`").expect("Failed creating configuration pattern");
+            static ref CONFIG_VALUE_REGEX: regex::Regex = regex::Regex::new(r#"^#### `"?([^`"]+)"?`"#)
+                .expect("Failed creating configuration value pattern");
         }
 
         loop {