From b945e43103544fc31a0755841b380358b2c161e6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 22 Jul 2022 17:16:38 +0200 Subject: Refactor to remove unneeded tuples in every states --- build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 52de3ac..4397c58 100644 --- a/build.rs +++ b/build.rs @@ -26,14 +26,14 @@ async fn commonmark() { let re = Regex::new(r"(?m)(?:^`{32} example\n[\s\S]*?\n`{32}$|^#{1,6} *(.*)$)").unwrap(); let re_heading_prefix = Regex::new(r"#{1,6} ").unwrap(); let re_in_out = Regex::new(r"\n\.(?:\n|$)").unwrap(); - let mut current_heading: Option = None; + let mut current_heading = None; let mut number = 1; let value = Regex::new(r"[\s\S]*") .unwrap() .replace(&value, ""); let value = Regex::new(r"→").unwrap().replace_all(&value, "\t"); - let mut cases: Vec = vec![]; + let mut cases = vec![]; for mat in re.find_iter(&value) { let mut lines = mat.as_str().lines().collect::>(); -- cgit