Skip to content

Commit 9dc7a3f

Browse files
committed
remote todo with note about our current understanding (#450)
1 parent 1335618 commit 9dc7a3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-refspec/src/match_group/util.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ impl<'a> Matcher<'a> {
2020
match (self.lhs, self.rhs) {
2121
(Some(lhs), None) => (lhs.matches(item).is_match(), None),
2222
(Some(lhs), Some(rhs)) => lhs.matches(item).into_match_outcome(rhs, item),
23-
_ => todo!(),
23+
(None, None) | (None, Some(_)) => {
24+
unreachable!("For all we know, the lefthand side is never empty. Push specs might change that.")
25+
}
2426
}
2527
}
2628
}

0 commit comments

Comments
 (0)