Skip to content

Commit 906f53d

Browse files
committed
refactor(lib): sort nix::fcntl imports alphabetically in stdout_is_closed
1 parent 582aa2a commit 906f53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uucore/src/lib/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub fn disable_rust_signal_handlers() -> Result<(), Errno> {
169169
pub fn stdout_is_closed() -> bool {
170170
#[cfg(unix)]
171171
{
172-
use nix::fcntl::{fcntl, FcntlArg};
172+
use nix::fcntl::{FcntlArg, fcntl};
173173
match fcntl(std::io::stdout(), FcntlArg::F_GETFL) {
174174
Ok(_) => false,
175175
Err(nix::errno::Errno::EBADF) => true,

0 commit comments

Comments
 (0)