From 8222ca0769259c73da0d77793f68d14fafa3300f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 11 Nov 2017 04:06:00 +0100 Subject: Replace unimplemented!() matcher with actual pattern --- src/timetype.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timetype.rs b/src/timetype.rs index eb840d3..8b7cf26 100644 --- a/src/timetype.rs +++ b/src/timetype.rs @@ -638,7 +638,9 @@ fn add(a: Box, b: Box) -> Result { (TT::EndOfHour(e), other) => Err(KE::from_kind(KEK::CannotAdd(other, TT::EndOfHour(e)))), (other, TT::EndOfHour(e)) => Err(KE::from_kind(KEK::CannotAdd(other, TT::EndOfHour(e)))), - _ => unimplemented!(), + (TT::EndOfMinute(e), other) => Err(KE::from_kind(KEK::CannotAdd(other, TT::EndOfMinute(e)))), + // unreachable, just for completeness: + //(other, TT::EndOfMinute(e)) => Err(KE::from_kind(KEK::CannotAdd(other, TT::EndOfMinute(e)))), } } -- cgit v1.2.3