Change to unreachable.
This commit is contained in:
parent
8f4e167d27
commit
9b3e4b63f6
|
@ -14,7 +14,7 @@ pub fn int_to_roman(number: i32) -> String {
|
||||||
10 => ("X", "L", "C"),
|
10 => ("X", "L", "C"),
|
||||||
100 => ("C", "D", "M"),
|
100 => ("C", "D", "M"),
|
||||||
1000 => ("M", "", ""),
|
1000 => ("M", "", ""),
|
||||||
_ => ("", "", ""),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
|
|
||||||
result += &match digit {
|
result += &match digit {
|
||||||
|
|
Loading…
Reference in New Issue