1
Fork 0

Change to unreachable.

This commit is contained in:
Bauke 2022-04-11 14:19:21 +02:00
parent 8f4e167d27
commit 9b3e4b63f6
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -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 {