From 9b3e4b63f64eb930b1d1917205553895abf1d33b Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 11 Apr 2022 14:19:21 +0200 Subject: [PATCH] Change to unreachable. --- source/integer_to_roman/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/integer_to_roman/mod.rs b/source/integer_to_roman/mod.rs index 6ea4ea5..5cc3bbf 100644 --- a/source/integer_to_roman/mod.rs +++ b/source/integer_to_roman/mod.rs @@ -14,7 +14,7 @@ pub fn int_to_roman(number: i32) -> String { 10 => ("X", "L", "C"), 100 => ("C", "D", "M"), 1000 => ("M", "", ""), - _ => ("", "", ""), + _ => unreachable!(), }; result += &match digit {