diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index 0ad300602..638aa00a3 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -337,7 +337,7 @@ impl InputType { enum OutputType { Tty(Stdout), - Pipe(Box), + Pipe(Stdout), #[cfg(test)] Test(Vec), } @@ -375,7 +375,7 @@ fn setup_term() -> UResult { stdout.execute(EnterAlternateScreen)?.execute(Hide)?; Ok(OutputType::Tty(stdout)) } else { - Ok(OutputType::Pipe(Box::new(stdout))) + Ok(OutputType::Pipe(stdout)) } } @@ -383,7 +383,7 @@ fn setup_term() -> UResult { #[inline(always)] fn setup_term() -> UResult { // no real stdout/tty on Fuchsia, just write into a pipe - Ok(OutputType::Pipe(Box::new(stdout()))) + Ok(OutputType::Pipe(stdout())) } fn reset_term() -> UResult<()> {