mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
remove redundant clone()s
This commit is contained in:
parent
5ecace48f6
commit
2a8edaa14d
8 changed files with 17 additions and 17 deletions
|
@ -399,9 +399,9 @@ pub fn diagnostics(
|
|||
.iter_mut()
|
||||
.filter_map(|it| {
|
||||
Some((
|
||||
it.main_node
|
||||
.map(|ptr| ptr.map(|node| node.to_node(&ctx.sema.parse_or_expand(ptr.file_id))))
|
||||
.clone()?,
|
||||
it.main_node.map(|ptr| {
|
||||
ptr.map(|node| node.to_node(&ctx.sema.parse_or_expand(ptr.file_id)))
|
||||
})?,
|
||||
it,
|
||||
))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue