diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-05 14:12:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-05 14:12:19 +0000 |
commit | 25a43e24c81f7b51234fc4e65e5e36ddbe3d60f1 (patch) | |
tree | 31592ef0ad2a7610b949411fbdbfe58a596e4987 /crates/ide/src | |
parent | 9707acb59b3f1f74bcc2f806ea5eab59279fad5e (diff) | |
parent | 42057896bc1435b67a2d1cce6100bcbe8e54f38e (diff) |
Merge #7879
7879: Fix some warnings r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/runnables.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
189 | ) -> Option<Definition> { | 189 | ) -> Option<Definition> { |
190 | let res: hir::ModuleDef = match_ast! { | 190 | let res: hir::ModuleDef = match_ast! { |
191 | match item { | 191 | match item { |
192 | ast::SourceFile(it) => sema.scope(&item).module()?.into(), | 192 | ast::SourceFile(_it) => sema.scope(&item).module()?.into(), |
193 | ast::Fn(it) => sema.to_def(&it)?.into(), | 193 | ast::Fn(it) => sema.to_def(&it)?.into(), |
194 | ast::Struct(it) => sema.to_def(&it)?.into(), | 194 | ast::Struct(it) => sema.to_def(&it)?.into(), |
195 | ast::Enum(it) => sema.to_def(&it)?.into(), | 195 | ast::Enum(it) => sema.to_def(&it)?.into(), |