From 42057896bc1435b67a2d1cce6100bcbe8e54f38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 5 Mar 2021 15:59:50 +0200 Subject: Fix some warnings --- crates/ide/src/runnables.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide/src/runnables.rs') diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 1e7baed20..65f60891e 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -189,7 +189,7 @@ pub(crate) fn doc_owner_to_def( ) -> Option { 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(), -- cgit v1.2.3