We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148c531 commit 0924f17Copy full SHA for 0924f17
src/uucore/src/lib/features/buf_copy.rs
@@ -28,19 +28,17 @@ mod tests {
28
use tempfile::tempdir;
29
30
#[cfg(unix)]
31
- use crate::pipes;
32
- #[cfg(unix)]
33
- use std::fs::OpenOptions;
34
35
- use std::{
36
- io::{Seek, SeekFrom},
37
- thread,
+ use {
+ crate::pipes,
+ std::fs::OpenOptions,
+ std::{
+ io::{Seek, SeekFrom},
+ thread,
+ },
38
};
39
40
#[cfg(any(target_os = "linux", target_os = "android"))]
41
- use nix::unistd;
42
- #[cfg(any(target_os = "linux", target_os = "android"))]
43
- use std::os::fd::AsRawFd;
+ use {nix::unistd, std::os::fd::AsRawFd};
44
45
use std::io::{Read, Write};
46
0 commit comments