Do not pass hir::Crate to lints.
This commit is contained in:
parent
abc57f63ad
commit
faa7d4221b
17 changed files with 32 additions and 33 deletions
|
@ -164,7 +164,7 @@ impl<'hir> Map<'hir> {
|
|||
}
|
||||
}
|
||||
|
||||
crate fn items(&self) -> impl Iterator<Item = &'hir Item<'hir>> + 'hir {
|
||||
pub fn items(&self) -> impl Iterator<Item = &'hir Item<'hir>> + 'hir {
|
||||
let krate = self.krate();
|
||||
krate.owners.iter().filter_map(|owner| match owner.as_ref()? {
|
||||
OwnerNode::Item(item) => Some(*item),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue