mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Replace option.map(cond) == Some(true)
with option.is_some_and(cond)
This commit is contained in:
parent
fec3828c5f
commit
b68f5311b5
3 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ fn try_extend_selection(
|
|||
|
||||
let node = shallowest_node(&node);
|
||||
|
||||
if node.parent().map(|n| list_kinds.contains(&n.kind())) == Some(true) {
|
||||
if node.parent().is_some_and(|n| list_kinds.contains(&n.kind())) {
|
||||
if let Some(range) = extend_list_item(&node) {
|
||||
return Some(range);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue