mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
fix clippy::map_flatten
This commit is contained in:
parent
62ed658311
commit
d64d711db2
5 changed files with 6 additions and 8 deletions
|
@ -170,10 +170,9 @@ pub(crate) fn resolve_annotation(db: &RootDatabase, mut annotation: Annotation)
|
|||
result
|
||||
.into_iter()
|
||||
.flat_map(|res| res.references)
|
||||
.map(|(file_id, access)| {
|
||||
.flat_map(|(file_id, access)| {
|
||||
access.into_iter().map(move |(range, _)| FileRange { file_id, range })
|
||||
})
|
||||
.flatten()
|
||||
.collect()
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue