History

remote todo with note about our current understanding (#450)

Sebastian Thiel committed 4 years ago

Commit 9dc7a3f1 parent 13356181 file · +3 −1Browse files

Unified · Split

git-refspec/src/match_group/util.rs+3−1
@@ -20,7 +20,9 @@ impl<'a> Matcher<'a> { · 19 unmodified lines
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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t