Fix some warnings

This commit is contained in:
Laurențiu Nicola 2021-03-05 15:59:50 +02:00
parent 9707acb59b
commit 42057896bc
2 changed files with 2 additions and 2 deletions

View file

@ -367,7 +367,7 @@ fn inner_attributes(
// Excerpt from the reference:
// Block expressions accept outer and inner attributes, but only when they are the outer
// expression of an expression statement or the final expression of another block expression.
ast::BlockExpr(it) => return None,
ast::BlockExpr(_it) => return None,
_ => return None,
}
};

View file

@ -189,7 +189,7 @@ pub(crate) fn doc_owner_to_def(
) -> Option<Definition> {
let res: hir::ModuleDef = match_ast! {
match item {
ast::SourceFile(it) => sema.scope(&item).module()?.into(),
ast::SourceFile(_it) => sema.scope(&item).module()?.into(),
ast::Fn(it) => sema.to_def(&it)?.into(),
ast::Struct(it) => sema.to_def(&it)?.into(),
ast::Enum(it) => sema.to_def(&it)?.into(),