Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit a98bb7c

Browse files
bors[bot]m-ou-se
andauthored
Merge #40
40: Make HStdout and HStderr Copy. r=adamgreig a=m-ou-se This makes it possible to pass it around by value, use a `Cell<HStdout>`, etc. Co-authored-by: Mara Bos <[email protected]>
2 parents 5e9b283 + 02341d7 commit a98bb7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use core::{fmt, slice};
44
use crate::nr;
55

66
/// Host's standard error
7+
#[derive(Clone, Copy)]
78
pub struct HStderr {
89
fd: usize,
910
}
@@ -22,6 +23,7 @@ impl fmt::Write for HStderr {
2223
}
2324

2425
/// Host's standard output
26+
#[derive(Clone, Copy)]
2527
pub struct HStdout {
2628
fd: usize,
2729
}

0 commit comments

Comments
 (0)