diff options
| author | Jethro Beekman <jethro@fortanix.com> | 2018-08-27 09:57:51 -0700 |
|---|---|---|
| committer | Jethro Beekman <jethro@fortanix.com> | 2018-12-06 20:37:15 +0530 |
| commit | 030b1ed7f709539f5ca422758e9fe00d173aee76 (patch) | |
| tree | 1253ea1024b9b7c872a32e688c1739772ad98204 /src/libstd/sys/redox/stdio.rs | |
| parent | 367e783e6f66a4dba32decdc68a262953d2f3f1b (diff) | |
| download | rust-030b1ed7f709539f5ca422758e9fe00d173aee76.tar.gz rust-030b1ed7f709539f5ca422758e9fe00d173aee76.zip | |
Refactor stderr_prints_nothing into a more modular function
Diffstat (limited to 'src/libstd/sys/redox/stdio.rs')
| -rw-r--r-- | src/libstd/sys/redox/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/redox/stdio.rs b/src/libstd/sys/redox/stdio.rs index 7a4d11b0ecb..52cd9334ffb 100644 --- a/src/libstd/sys/redox/stdio.rs +++ b/src/libstd/sys/redox/stdio.rs @@ -76,6 +76,6 @@ pub fn is_ebadf(err: &io::Error) -> bool { pub const STDIN_BUF_SIZE: usize = ::sys_common::io::DEFAULT_BUF_SIZE; -pub fn stderr_prints_nothing() -> bool { - false +pub fn panic_output() -> Option<impl io::Write> { + Stderr::new().ok() } |
