mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Some clippy fixes
This commit is contained in:
parent
24af351018
commit
d7f3d858ad
11 changed files with 16 additions and 19 deletions
|
@ -96,7 +96,7 @@ fn try_extend_selection(
|
|||
return Some(node.text_range());
|
||||
}
|
||||
|
||||
let node = shallowest_node(&node.into());
|
||||
let node = shallowest_node(&node);
|
||||
|
||||
if node.parent().map(|n| list_kinds.contains(&n.kind())) == Some(true) {
|
||||
if let Some(range) = extend_list_item(&node) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue