瀏覽代碼

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

whitequark 7 年之前
父節點
當前提交
770503f37b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/time.rs

+ 2 - 2
src/time.rs

@@ -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]