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