Merge pull request #1512 from nmay231/main
fix(options3): panic when not matching to avoid false positives
This commit is contained in:
commit
b882da1ad4
|
@ -13,7 +13,7 @@ fn main() {
|
||||||
|
|
||||||
match y {
|
match y {
|
||||||
Some(p) => println!("Co-ordinates are {},{} ", p.x, p.y),
|
Some(p) => println!("Co-ordinates are {},{} ", p.x, p.y),
|
||||||
_ => println!("no match"),
|
_ => panic!("no match!"),
|
||||||
}
|
}
|
||||||
y; // Fix without deleting this line.
|
y; // Fix without deleting this line.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue