Skip to content

Commit d5de67a

Browse files
committed
change cfg gate to enable testing Instant subtraction in Windows
1 parent f762c70 commit d5de67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
let now2 = Instant::now();
2626
assert!(now2 > now1);
2727

28-
#[cfg(target_os = "linux")] // TODO: macOS does not support Instant subtraction
28+
#[cfg(not(target_os = "macos"))] // TODO: macOS does not support Instant subtraction
2929
{
3030
let diff = now2.duration_since(now1);
3131
assert_eq!(now1 + diff, now2);

0 commit comments

Comments
 (0)