Skip to content

Commit 25a43e2

Browse files
bors[bot]lnicola
andauthored
Merge #7879
7879: Fix some warnings r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 parents 9707acb + 4205789 commit 25a43e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir_def/src/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ fn inner_attributes(
367367
// Excerpt from the reference:
368368
// Block expressions accept outer and inner attributes, but only when they are the outer
369369
// expression of an expression statement or the final expression of another block expression.
370-
ast::BlockExpr(it) => return None,
370+
ast::BlockExpr(_it) => return None,
371371
_ => return None,
372372
}
373373
};

crates/ide/src/runnables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub(crate) fn doc_owner_to_def(
189189
) -> Option<Definition> {
190190
let res: hir::ModuleDef = match_ast! {
191191
match item {
192-
ast::SourceFile(it) => sema.scope(&item).module()?.into(),
192+
ast::SourceFile(_it) => sema.scope(&item).module()?.into(),
193193
ast::Fn(it) => sema.to_def(&it)?.into(),
194194
ast::Struct(it) => sema.to_def(&it)?.into(),
195195
ast::Enum(it) => sema.to_def(&it)?.into(),

0 commit comments

Comments
 (0)