diff options
-rw-r--r-- | bin/domain/imag-todo/src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs index 9f22c749..96ff913f 100644 --- a/bin/domain/imag-todo/src/lib.rs +++ b/bin/domain/imag-todo/src/lib.rs @@ -147,7 +147,7 @@ impl ImagApplication for ImagTodo { /// The blacklist is checked first, followed by the whitelist. /// In case the whitelist is empty, the StatusMatcher works with a /// blacklist-only approach. -#[derive(Debug)] +#[derive(Debug, Default)] pub struct StatusMatcher { is: Vec<Status>, is_not: Vec<Status>, @@ -155,10 +155,7 @@ pub struct StatusMatcher { impl StatusMatcher { pub fn new() -> Self { - StatusMatcher { - is: Vec::new(), - is_not: Vec::new(), - } + StatusMatcher { ..Default::default() } } pub fn is(mut self, s: Status) -> Self { |