From ef203a0f669bb5aeed5c548dfe2506807173b7d7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 31 Aug 2023 09:06:06 -0400 Subject: [PATCH] Adding a clippy needless_return lint. --- .woodpecker.yml | 1 + scripts/lint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 49fbe3db2..7f9164c73 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -170,6 +170,7 @@ steps: -D clippy::needless_collect -D clippy::unwrap_used -D clippy::indexing_slicing + -D clippy::needless_return when: *slow_check_paths cargo_build: diff --git a/scripts/lint.sh b/scripts/lint.sh index b06c5541f..555739269 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -19,7 +19,8 @@ cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-target -D clippy::explicit_iter_loop \ -D clippy::needless_collect \ -D clippy::unwrap_used \ - -D clippy::indexing_slicing + -D clippy::indexing_slicing \ + -D clippy::needless_return # Format rust files cargo +nightly fmt