From ee665fbebe4732ccf8c695fba8c33272afc1cc27 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 19 May 2025 10:08:40 +0200 Subject: [PATCH] more: fix warning from let_and_return lint --- src/uu/more/src/more.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index adc6fb089..97d911f4f 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -900,7 +900,7 @@ mod tests { if let Some(rows) = self.options.lines { self.rows = rows; } - let pager = Pager::new( + Pager::new( InputType::File(BufReader::new(tmpfile)), self.rows, None, @@ -908,8 +908,7 @@ mod tests { &self.options, out, ) - .unwrap(); - pager + .unwrap() } fn silent(mut self) -> Self {