We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1335618 commit 9dc7a3fCopy full SHA for 9dc7a3f
git-refspec/src/match_group/util.rs
@@ -20,7 +20,9 @@ impl<'a> Matcher<'a> {
20
match (self.lhs, self.rhs) {
21
(Some(lhs), None) => (lhs.matches(item).is_match(), None),
22
(Some(lhs), Some(rhs)) => lhs.matches(item).into_match_outcome(rhs, item),
23
- _ => todo!(),
+ (None, None) | (None, Some(_)) => {
24
+ unreachable!("For all we know, the lefthand side is never empty. Push specs might change that.")
25
+ }
26
}
27
28
0 commit comments