Skip to content

Commit 3124903

Browse files
committed
fixup! std::process (unsupported): Implement From<io::Stdout> etc. for imp::Stdio
1 parent e04ba9c commit 3124903

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/sys/unsupported/process.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct StdioPipes {
2727
pub stderr: Option<AnonPipe>,
2828
}
2929

30-
// TODO: This should be a unit struct, so we can always construct it
30+
// FIXME: This should be a unit struct, so we can always construct it
3131
// The value here should be never used, since we cannot spawn processes.
3232
pub enum Stdio {
3333
Inherit,
@@ -91,23 +91,23 @@ impl From<AnonPipe> for Stdio {
9191

9292
impl From<io::Stdout> for Stdio {
9393
fn from(_: io::Stdout) -> Stdio {
94-
// This is wrong.
94+
// FIXME: This is wrong.
9595
// Instead, the Stdio we have here should be a unit struct.
9696
panic!("unsupported")
9797
}
9898
}
9999

100100
impl From<io::Stderr> for Stdio {
101101
fn from(_: io::Stderr) -> Stdio {
102-
// This is wrong.
102+
// FIXME: This is wrong.
103103
// Instead, the Stdio we have here should be a unit struct.
104104
panic!("unsupported")
105105
}
106106
}
107107

108108
impl From<File> for Stdio {
109109
fn from(_file: File) -> Stdio {
110-
// This is wrong.
110+
// FIXME: This is wrong.
111111
// Instead, the Stdio we have here should be a unit struct.
112112
panic!("unsupported")
113113
}

0 commit comments

Comments
 (0)