Skip to content

Commit 6bb16ba

Browse files
committed
regex_set: Derive Default instead of manually implementing it.
1 parent d7dc508 commit 6bb16ba

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/regex_set.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use regex::RegexSet as RxSet;
44
use std::cell::Cell;
55

66
/// A dynamic set of regular expressions.
7-
#[derive(Debug)]
7+
#[derive(Debug, Default)]
88
pub struct RegexSet {
99
items: Vec<String>,
1010
matched: Vec<Cell<bool>>,
@@ -76,13 +76,3 @@ impl RegexSet {
7676
false
7777
}
7878
}
79-
80-
impl Default for RegexSet {
81-
fn default() -> Self {
82-
RegexSet {
83-
items: vec![],
84-
matched: vec![],
85-
set: None,
86-
}
87-
}
88-
}

0 commit comments

Comments
 (0)