]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unchecked_duration_subtraction.fixed
fix: remove (redundant) semicolon in lint suggestion
[rust.git] / tests / ui / unchecked_duration_subtraction.fixed
index bcc231d93b162a464d00518090efc3cd94e6d0fb..a0e49a8beb1ede7fba56edf5405971721939ccdf 100644 (file)
@@ -7,11 +7,11 @@ fn main() {
     let _first = Instant::now();
     let second = Duration::from_secs(3);
 
-    let _ = _first.checked_sub(second).unwrap();;
+    let _ = _first.checked_sub(second).unwrap();
 
-    let _ = Instant::now().checked_sub(Duration::from_secs(5)).unwrap();;
+    let _ = Instant::now().checked_sub(Duration::from_secs(5)).unwrap();
 
-    let _ = _first.checked_sub(Duration::from_secs(5)).unwrap();;
+    let _ = _first.checked_sub(Duration::from_secs(5)).unwrap();
 
-    let _ = Instant::now().checked_sub(second).unwrap();;
+    let _ = Instant::now().checked_sub(second).unwrap();
 }