Apply suggestions from code review
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
parent
659b0a2fd9
commit
77c300285c
2 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ pub struct Crate<'hir> {
|
|||
pub attrs: BTreeMap<HirId, &'hir [Attribute]>,
|
||||
}
|
||||
|
||||
impl<'hir> Crate<'hir> {
|
||||
impl Crate<'hir> {
|
||||
pub fn module(&self) -> &'hir Mod<'hir> {
|
||||
if let Some(OwnerNode::Crate(m)) = self.owners[CRATE_DEF_ID] { m } else { panic!() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue