Skip to content

Commit 72bda33

Browse files
committed
Fix compilation errors
Signed-off-by: Jiahao XU <[email protected]>
1 parent 04eed9b commit 72bda33

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

library/std/src/io/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ pub(crate) mod copy;
338338
mod cursor;
339339
mod error;
340340
mod impls;
341-
#[unstable(feature = "annoymous_pipe", issue = "")]
341+
/// Annoymous pipe implementation
342+
#[unstable(feature = "annoymous_pipe", issue = "127154")]
342343
pub mod pipe;
343344
pub mod prelude;
344345
mod stdio;

library/std/src/io/pipe/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ pub fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
1212
}
1313
}
1414

15+
/// Read end of the annoymous pipe.
1516
#[derive(Debug)]
1617
pub struct PipeReader(AnonPipe);
1718

19+
/// Write end of the annoymous pipe.
1820
#[derive(Debug)]
1921
pub struct PipeWriter(AnonPipe);
2022

23+
/// The owned fd provided is not a pipe.
24+
#[derive(Debug)]
2125
pub struct NotAPipeError;
2226

2327
impl PipeReader {
@@ -174,7 +178,7 @@ mod windows {
174178

175179
#[inline]
176180
pub(super) fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
177-
anon_pipe(true, false).map(|Pipes { ours, their }| (PipeReader(ours), PipeWrite(theirs)))
181+
anon_pipe(true, false).map(|Pipes { ours, theirs }| (PipeReader(ours), PipeWriter(theirs)))
178182
}
179183

180184
macro_rules! impl_traits {

0 commit comments

Comments
 (0)