Adding a clippy needless_return lint.

This commit is contained in:
Dessalines 2023-08-31 09:06:06 -04:00
parent bd3f39973f
commit ef203a0f66
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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