Skip to content

Commit

Permalink
Fix tests to not depend on extra-traits.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 17, 2024
1 parent 50bece5 commit 76487b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/time/dynamic_clocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn test_known_clocks() {
#[test]
fn test_dynamic_clocks() {
let file = std::fs::File::open("Cargo.toml").unwrap();
clock_gettime_dynamic(DynamicClockId::Dynamic(file.as_fd())).unwrap_err();
assert!(clock_gettime_dynamic(DynamicClockId::Dynamic(file.as_fd())).is_err());
}

#[cfg(linux_kernel)]
Expand Down
2 changes: 1 addition & 1 deletion tests/time/timespec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn test_timespec_layout() {
// Test that `Timespec` implements `Copy` and `Debug`.
let _y = Timespec { tv_sec, tv_nsec };
let _z = Timespec { tv_sec, tv_nsec };
dbg!(&x);
dbg!(x.tv_sec, x.tv_nsec);

#[cfg(not(target_os = "redox"))]
#[cfg(feature = "fs")]
Expand Down

0 comments on commit 76487b4

Please sign in to comment.