Fix errors caused by an update to #[deny(unused)].

This commit is contained in:
whitequark 2018-05-07 15:00:18 +00:00
parent 0ce9f56c26
commit 6067607442
1 changed files with 2 additions and 2 deletions

View File

@ -311,13 +311,13 @@ mod test {
#[test]
#[should_panic(expected = "overflow when subtracting durations")]
fn test_sub_from_zero_overflow() {
Duration::from_millis(0) - Duration::from_millis(1);
let _ = Duration::from_millis(0) - Duration::from_millis(1);
}
#[test]
#[should_panic(expected = "attempt to divide by zero")]
fn test_div_by_zero() {
Duration::from_millis(4) / 0;
let _ = Duration::from_millis(4) / 0;
}
#[test]