change cfg gate to enable testing Instant subtraction in Windows
This commit is contained in:
parent
f762c70b51
commit
d5de67a5a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue