Enable clippy::nonminimal_bool
(#8755)
This PR enables the [`clippy::nonminimal_bool`](https://rust-lang.github.io/rust-clippy/master/index.html#/nonminimal_bool) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
2f876471a1
commit
191fcf67d1
6 changed files with 6 additions and 5 deletions
|
@ -458,7 +458,7 @@ fn argument(
|
|||
parent_covers_bracket_range = covers_bracket_range;
|
||||
|
||||
// Unable to find a child node with a parent that covers the bracket range, so no argument to select
|
||||
if !cursor.goto_first_child_for_byte(offset).is_some() {
|
||||
if cursor.goto_first_child_for_byte(offset).is_none() {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,6 +87,7 @@ pub fn visual_motion(motion: Motion, times: Option<usize>, cx: &mut WindowContex
|
|||
// If the file ends with a newline (which is common) we don't do this.
|
||||
// so that if you go to the end of such a file you can use "up" to go
|
||||
// to the previous line and have it work somewhat as expected.
|
||||
#[allow(clippy::nonminimal_bool)]
|
||||
if !selection.reversed
|
||||
&& !selection.is_empty()
|
||||
&& !(selection.end.column() == 0 && selection.end == map.max_point())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue