Skip to content

Commit e22dd1a

Browse files
NobodyXua1phyr
andauthored
Update mod.rs
Co-authored-by: Alphyr <[email protected]>
1 parent d15cee5 commit e22dd1a

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/anonymous_pipe

1 file changed

+1
-1
lines changed

library/std/src/sys/anonymous_pipe/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
1010
} else if #[cfg(windows)] {
1111
windows::pipe()
1212
} else {
13-
panic!("Anonymous pipe is not supported on this target!")
13+
Err(io::Error::UNSUPPORTED_PLATFORM)
1414
}
1515
}
1616
}

0 commit comments

Comments
 (0)