refactor: use fully qualified variant name

This commit is contained in:
Harsh Shandilya 2022-02-22 09:43:17 +05:30
parent 4684713d7e
commit eb3074d324
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -86,8 +86,10 @@ impl Match for Matcher<'_> {
impl Match for MatcherType<'_> {
fn check_match(&self, string: &str) -> bool {
match self {
Self::Single(matcher) => matcher.check_match(string),
Self::Multiple(matchers) => matchers.iter().all(|matcher| matcher.check_match(string)),
MatcherType::Single(matcher) => matcher.check_match(string),
MatcherType::Multiple(matchers) => {
matchers.iter().all(|matcher| matcher.check_match(string))
}
}
}
}