mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 15:05:40 +00:00
Adding a clippy needless_return lint.
This commit is contained in:
parent
bd3f39973f
commit
ef203a0f66
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue