diff options
Diffstat (limited to 'vendor/regex-syntax/src/error.rs')
-rw-r--r-- | vendor/regex-syntax/src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/regex-syntax/src/error.rs b/vendor/regex-syntax/src/error.rs index 71cfa426a..1230d2fc5 100644 --- a/vendor/regex-syntax/src/error.rs +++ b/vendor/regex-syntax/src/error.rs @@ -182,7 +182,7 @@ impl<'p> Spans<'p> { if line_count <= 1 { 0 } else { line_count.to_string().len() }; let mut spans = Spans { pattern: &fmter.pattern, - line_number_width: line_number_width, + line_number_width, by_line: vec![vec![]; line_count], multi_line: vec![], }; @@ -288,7 +288,7 @@ fn repeat_char(c: char, count: usize) -> String { mod tests { use crate::ast::parse::Parser; - fn assert_panic_message(pattern: &str, expected_msg: &str) -> () { + fn assert_panic_message(pattern: &str, expected_msg: &str) { let result = Parser::new().parse(pattern); match result { Ok(_) => { |