fix clippy::map_flatten
This commit is contained in:
@@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user