mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Cleanup
This commit is contained in:
parent
083986030e
commit
3a6ae42eac
2 changed files with 42 additions and 37 deletions
|
@ -17,7 +17,7 @@ use crate::{
|
|||
doc_links::{remove_links, rewrite_links},
|
||||
markdown_remove::remove_markdown,
|
||||
markup::Markup,
|
||||
runnables::{runnable, runnable_fn},
|
||||
runnables::{runnable_fn, runnable_mod},
|
||||
FileId, FilePosition, NavigationTarget, RangeInfo, Runnable,
|
||||
};
|
||||
|
||||
|
@ -192,7 +192,7 @@ fn runnable_action(
|
|||
Definition::ModuleDef(it) => match it {
|
||||
ModuleDef::Module(it) => match it.definition_source(sema.db).value {
|
||||
ModuleSource::Module(it) => {
|
||||
runnable(&sema, it.syntax().clone()).map(|it| HoverAction::Runnable(it))
|
||||
runnable_mod(&sema, it).map(|it| HoverAction::Runnable(it))
|
||||
}
|
||||
_ => None,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue