Skip to content

Commit a7d9ab5

Browse files
committedAug 19, 2021
Fix an unused import warning.
1 parent cada5fb commit a7d9ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/std/src/sys/unix/process/process_unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::io::{self, Error, ErrorKind};
44
use crate::mem;
55
use crate::num::NonZeroI32;
66
use crate::os::raw::NonZero_c_int;
7-
use crate::os::unix::io::FromRawFd;
87
use crate::ptr;
98
use crate::sys;
109
use crate::sys::cvt;
@@ -550,6 +549,7 @@ pub struct Process {
550549
impl Process {
551550
#[cfg(target_os = "linux")]
552551
unsafe fn new(pid: pid_t, pidfd: pid_t) -> Self {
552+
use crate::os::unix::io::FromRawFd;
553553
use crate::sys_common::FromInner;
554554
// Safety: If `pidfd` is nonnegative, we assume it's valid and otherwise unowned.
555555
let pidfd = (pidfd >= 0)

0 commit comments

Comments
 (0)
Please sign in to comment.