Skip to content

Commit de102a7

Browse files
committed
Avoid dup monomorphization in Stdio::to_output
Signed-off-by: Jiahao XU <[email protected]>
1 parent c38b18a commit de102a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/native_mux_impl/stdio.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ impl Stdio {
6262
}
6363
}
6464

65-
fn to_output(
66-
&self,
67-
get_inherit_rawfd: impl FnOnce() -> RawFd,
68-
) -> Result<(Fd, Option<PipeRead>), Error> {
65+
fn to_output(&self, get_inherit_rawfd: fn() -> RawFd) -> Result<(Fd, Option<PipeRead>), Error> {
6966
match &self.0 {
7067
StdioImpl::Inherit => Ok((Fd::Borrowed(get_inherit_rawfd()), None)),
7168
StdioImpl::Null => Ok((Fd::Null, None)),

0 commit comments

Comments
 (0)