From 3b2ff61d21b1189836811b58976b9f062e6e8d03 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 30 Apr 2026 04:06:58 +0100 Subject: [PATCH] refactor(more): avoid Box --- src/uu/more/src/more.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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<()> {