From c114f41545ac034ca38d803bd86042b60eb3487d Mon Sep 17 00:00:00 2001 From: Michael Angerman Date: Wed, 27 Oct 2021 08:35:42 -0700 Subject: [PATCH] clippy fix --- crates/nu-command/src/filters/last.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-command/src/filters/last.rs b/crates/nu-command/src/filters/last.rs index 57223981f7..a878076801 100644 --- a/crates/nu-command/src/filters/last.rs +++ b/crates/nu-command/src/filters/last.rs @@ -66,10 +66,10 @@ fn rows_to_skip(count: i64, rows: Option) -> i64 { }; if end_rows_desired < count { - return count - end_rows_desired; + count - end_rows_desired } else { - return 0; - }; + 0 + } } #[cfg(test)]