mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
Allow clippy::blocks-in-if-conditions
It rejects code such as: ```rust if state .start_ts .zip(accumulate_time) .map_or(false, |(start_ts, accumulate_time)| { start_ts + accumulate_time < pts }) ``` because it looks like: ```rust if { true } ```
This commit is contained in:
parent
e16cad7c8f
commit
8f8f5bdff7
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ clippy:
|
|||
rules:
|
||||
- when: 'always'
|
||||
script:
|
||||
- cargo clippy --locked --color=always --all --all-features --all-targets -- -A clippy::single_match -A clippy::manual_range_contains -A clippy::upper_case_acronyms -D warnings
|
||||
- cargo clippy --locked --color=always --all --all-features --all-targets -- -A clippy::single_match -A clippy::manual_range_contains -A clippy::upper_case_acronyms -A clippy::blocks-in-if-conditions -D warnings
|
||||
|
||||
deny:
|
||||
extends: .img-stable
|
||||
|
|
Loading…
Reference in a new issue