1
Fork 0

Apply suggestions from code review

Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
Camille Gillot 2021-09-13 20:43:43 +02:00 committed by Camille GILLOT
parent 659b0a2fd9
commit 77c300285c
2 changed files with 2 additions and 2 deletions

View file

@ -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!() }
}