internal: prep to 2021 edition
This commit is contained in:
@@ -547,10 +547,10 @@ impl InFile<SyntaxToken> {
|
||||
self,
|
||||
db: &dyn db::AstDatabase,
|
||||
) -> impl Iterator<Item = InFile<SyntaxNode>> + '_ {
|
||||
self.value
|
||||
.parent()
|
||||
.into_iter()
|
||||
.flat_map(move |parent| InFile::new(self.file_id, parent).ancestors_with_macros(db))
|
||||
self.value.parent().into_iter().flat_map({
|
||||
let file_id = self.file_id;
|
||||
move |parent| InFile::new(file_id, parent).ancestors_with_macros(db)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user