change cfg gate to enable testing Instant subtraction in Windows

This commit is contained in:
JOE1994 2020-04-02 16:15:23 -04:00
parent f762c70b51
commit d5de67a5a0

View file

@ -25,7 +25,7 @@ fn main() {
let now2 = Instant::now();
assert!(now2 > now1);
#[cfg(target_os = "linux")] // TODO: macOS does not support Instant subtraction
#[cfg(not(target_os = "macos"))] // TODO: macOS does not support Instant subtraction
{
let diff = now2.duration_since(now1);
assert_eq!(now1 + diff, now2);