diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-12-03 03:52:43 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-12-03 03:52:43 +0000 |
commit | 86ebf7b0eac4cd0d092b816060042c55ca8871c5 (patch) | |
tree | 3e4e6714d843edc493dfc3cf879d659bbd264e65 /test/test_fcntl.rs | |
parent | d374a1ecd3f69027a2ce28e87806f459ef3f9105 (diff) | |
parent | e1baab9dc132f18e13f446df0271a5e46723848d (diff) | |
download | nix-86ebf7b0eac4cd0d092b816060042c55ca8871c5.zip |
Merge #801
801: Upgrade to Bitflags 1.0 r=asomers a=Susurrus
The libc_bitflags! macro was replaced with a non-recursive one supporting
only public structs. I could not figure out how to make the old macro work
with the upgrade, so I reworked part of the bitflags! macro directly to suit
our needs, much as the original recursive macro was made. There are no uses
of this macro for non-public structs, so this is not a problem for internal code.
Closes #766.
Diffstat (limited to 'test/test_fcntl.rs')
-rw-r--r-- | test/test_fcntl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs index d171b91d..795b6c85 100644 --- a/test/test_fcntl.rs +++ b/test/test_fcntl.rs @@ -1,4 +1,4 @@ -use nix::fcntl::{openat, open, OFlag, O_RDONLY, readlink, readlinkat}; +use nix::fcntl::{openat, open, OFlag, readlink, readlinkat}; use nix::sys::stat::Mode; use nix::unistd::{close, read}; use tempdir::TempDir; @@ -17,7 +17,7 @@ fn test_openat() { Mode::empty()).unwrap(); let fd = openat(dirfd, tmp.path().file_name().unwrap(), - O_RDONLY, + OFlag::O_RDONLY, Mode::empty()).unwrap(); let mut buf = [0u8; 1024]; |