mirror of https://github.com/encounter/objdiff.git
Short circuit ambiguous matches
This commit is contained in:
parent
0ed49533d9
commit
5fd74583fa
|
@ -94,6 +94,9 @@ pub fn run(args: Args) -> Result<()> {
|
||||||
{
|
{
|
||||||
idx = Some(i);
|
idx = Some(i);
|
||||||
count += 1;
|
count += 1;
|
||||||
|
if count > 1 {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
match (count, idx) {
|
match (count, idx) {
|
||||||
|
|
Loading…
Reference in New Issue