]> git.lizzy.rs Git - rust.git/commitdiff
Cargo fmt
authortopecongiro <seuchida@gmail.com>
Fri, 23 Feb 2018 16:18:53 +0000 (01:18 +0900)
committertopecongiro <seuchida@gmail.com>
Fri, 23 Feb 2018 16:18:53 +0000 (01:18 +0900)
rustfmt-core/tests/lib.rs

index f219cf3212b9b0d5065a7bfc01da55075eb32352..b15dc417106a7cdefce204fde44fc03d01e85c06 100644 (file)
@@ -623,8 +623,10 @@ fn get_section<I: Iterator<Item = String>>(
         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 {