summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-09-27 21:19:44 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-09-27 21:19:44 +0200
commit0d62a02a47cde171cf08c06cc717a01e771de5bd (patch)
treedb7dba9a6fa7868e7b1895e9cc0a73fd0199a170
parenta4c330a9133d11b6bc860cbc9c9ec38fc91c220c (diff)
Remove unused variables
-rw-r--r--src/timetype.rs7
1 files 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<TimeType>, b: Box<TimeType>) -> Result<TimeType> {
(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<TimeType>, b: Box<TimeType>) -> Result<TimeType> {
(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)))),
}
}