mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
Fix some warnings
This commit is contained in:
parent
9707acb59b
commit
42057896bc
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue