diff options
author | Vickenty Fesunov <kent@setattr.net> | 2020-01-25 13:27:24 +0100 |
---|---|---|
committer | Vickenty Fesunov <kent@setattr.net> | 2020-02-12 10:09:22 +0100 |
commit | 9358be36d65458fca800c25c2a6e389c92b4d572 (patch) | |
tree | 0f4d90255f00cbb70a44ef4af4ba01a24a816ae7 /src/fuchsia | |
parent | 1c5dab1ebb054164f0c441a2725917a39fd5bd98 (diff) | |
download | rust-libc-9358be36d65458fca800c25c2a6e389c92b4d572.tar.gz |
Remove unnecessary parenthesis
This triggers a warning on a recent nightly, which in turn breaks CI due to
`#![deny(warnings)]` in libc-test/build.rs
Diffstat (limited to 'src/fuchsia')
-rw-r--r-- | src/fuchsia/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 7d23e67106..f5e89573f4 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -1509,12 +1509,12 @@ pub const LC_COLLATE: ::c_int = 3; pub const LC_MONETARY: ::c_int = 4; pub const LC_MESSAGES: ::c_int = 5; pub const LC_ALL: ::c_int = 6; -pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); -pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); -pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); -pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); -pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); -pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); +pub const LC_CTYPE_MASK: ::c_int = 1 << LC_CTYPE; +pub const LC_NUMERIC_MASK: ::c_int = 1 << LC_NUMERIC; +pub const LC_TIME_MASK: ::c_int = 1 << LC_TIME; +pub const LC_COLLATE_MASK: ::c_int = 1 << LC_COLLATE; +pub const LC_MONETARY_MASK: ::c_int = 1 << LC_MONETARY; +pub const LC_MESSAGES_MASK: ::c_int = 1 << LC_MESSAGES; // LC_ALL_MASK defined per platform pub const MAP_FILE: ::c_int = 0x0000; @@ -2691,7 +2691,7 @@ pub const FOPEN_MAX: ::c_uint = 1000; pub const O_PATH: ::c_int = 0x00400000; pub const O_EXEC: ::c_int = O_PATH; pub const O_SEARCH: ::c_int = O_PATH; -pub const O_ACCMODE: ::c_int = (03 | O_SEARCH); +pub const O_ACCMODE: ::c_int = 03 | O_SEARCH; pub const O_NDELAY: ::c_int = O_NONBLOCK; pub const NI_MAXHOST: ::socklen_t = 255; pub const PTHREAD_STACK_MIN: ::size_t = 2048; @@ -2893,7 +2893,7 @@ pub const O_CREAT: ::c_int = 0x00010000; pub const O_EXCL: ::c_int = 0x00020000; pub const O_NOCTTY: ::c_int = 0x00000200; pub const O_NONBLOCK: ::c_int = 0x00000010; -pub const O_SYNC: ::c_int = (0x00000040 | O_DSYNC); +pub const O_SYNC: ::c_int = 0x00000040 | O_DSYNC; pub const O_RSYNC: ::c_int = O_SYNC; pub const O_DSYNC: ::c_int = 0x00000020; |