Skip to content

Commit 5633b13

Browse files
committed
Tidy up spurious trailing commas.
1 parent d04c846 commit 5633b13

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/fs/at.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ pub fn fclonefileat<Fd: AsFd, DstFd: AsFd, P: path::Arg>(
332332
///
333333
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknodat.html
334334
/// [Linux]: https://man7.org/linux/man-pages/man2/mknodat.2.html
335-
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi",)))]
335+
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
336336
#[inline]
337337
pub fn mknodat<P: path::Arg, Fd: AsFd>(
338338
dirfd: &Fd,
@@ -354,7 +354,7 @@ pub fn mknodat<P: path::Arg, Fd: AsFd>(
354354
///
355355
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html
356356
/// [Linux]: https://man7.org/linux/man-pages/man2/fchownat.2.html
357-
#[cfg(not(any(target_os = "wasi",)))]
357+
#[cfg(not(any(target_os = "wasi")))]
358358
#[inline]
359359
pub fn chownat<P: path::Arg, Fd: AsFd>(
360360
dirfd: &Fd,

src/imp/libc/net/syscalls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::io::{self, OwnedFd};
1616
use crate::net::{SocketAddrAny, SocketAddrV4, SocketAddrV6};
1717
use core::convert::TryInto;
1818
use core::mem::{size_of, MaybeUninit};
19-
#[cfg(not(any(target_os = "redox", target_os = "wasi",)))]
19+
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
2020
use core::ptr::null_mut;
2121

2222
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]

src/imp/libc/net/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl AddressFamily {
320320
)))]
321321
pub const TIPC: Self = Self(c::AF_TIPC as _);
322322
/// `AF_BLUETOOTH`
323-
#[cfg(not(any(windows, target_os = "illumos", target_os = "ios", target_os = "macos",)))]
323+
#[cfg(not(any(windows, target_os = "illumos", target_os = "ios", target_os = "macos")))]
324324
pub const BLUETOOTH: Self = Self(c::AF_BLUETOOTH as _);
325325
/// `AF_IUCV`
326326
#[cfg(not(any(

src/imp/libc/offset.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub(super) use c::openat64 as libc_openat;
9595

9696
#[cfg(target_os = "fuchsia")]
9797
pub(super) use c::fallocate as libc_fallocate;
98-
#[cfg(any(target_os = "android", target_os = "linux",))]
98+
#[cfg(any(target_os = "android", target_os = "linux"))]
9999
pub(super) use c::fallocate64 as libc_fallocate;
100100
#[cfg(not(any(
101101
windows,
@@ -183,7 +183,7 @@ pub(super) use readwrite_pv::{preadv as libc_preadv, pwritev as libc_pwritev};
183183
target_os = "redox",
184184
)))]
185185
pub(super) use c::posix_fallocate as libc_posix_fallocate;
186-
#[cfg(any(target_os = "l4re",))]
186+
#[cfg(any(target_os = "l4re"))]
187187
pub(super) use c::posix_fallocate64 as libc_posix_fallocate;
188188
#[cfg(not(any(
189189
windows,

src/net/sockopt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub fn get_socket_linger<Fd: AsFd>(fd: &Fd) -> io::Result<Option<Duration>> {
161161
///
162162
/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html
163163
/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html
164-
#[cfg(any(target_os = "android", target_os = "linux",))]
164+
#[cfg(any(target_os = "android", target_os = "linux"))]
165165
#[inline]
166166
#[doc(alias = "SO_PASSCRED")]
167167
pub fn set_socket_passcred<Fd: AsFd>(fd: &Fd, passcred: bool) -> io::Result<()> {
@@ -177,7 +177,7 @@ pub fn set_socket_passcred<Fd: AsFd>(fd: &Fd, passcred: bool) -> io::Result<()>
177177
///
178178
/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html
179179
/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html
180-
#[cfg(any(target_os = "android", target_os = "linux",))]
180+
#[cfg(any(target_os = "android", target_os = "linux"))]
181181
#[inline]
182182
#[doc(alias = "SO_PASSCRED")]
183183
pub fn get_socket_passcred<Fd: AsFd>(fd: &Fd) -> io::Result<bool> {

0 commit comments

Comments
 (0)