From 0d62a02a47cde171cf08c06cc717a01e771de5bd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 27 Sep 2017 21:19:44 +0200 Subject: Remove unused variables --- src/timetype.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/timetype.rs b/src/timetype.rs index 8ac3245..e410723 100644 --- a/src/timetype.rs +++ b/src/timetype.rs @@ -629,7 +629,7 @@ 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)))), - others => unimplemented!(), + _ => unimplemented!(), } } @@ -897,9 +897,8 @@ fn sub(a: Box, b: Box) -> Result { (other, TT::EndOfHour(e)) => Err(KE::from_kind(KEK::CannotSub(other, TT::EndOfHour(e)))), (TT::EndOfMinute(e), other) => Err(KE::from_kind(KEK::CannotSub(other, TT::EndOfMinute(e)))), - (other, TT::EndOfMinute(e)) => Err(KE::from_kind(KEK::CannotSub(other, TT::EndOfMinute(e)))), - - others => unimplemented!(), + // unreachable, but for completeness + //(other, TT::EndOfMinute(e)) => Err(KE::from_kind(KEK::CannotSub(other, TT::EndOfMinute(e)))), } } -- cgit v1.2.3