mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
clippy::redundant_closure
This commit is contained in:
parent
705f7e6e26
commit
75370312fb
12 changed files with 17 additions and 17 deletions
|
@ -288,7 +288,7 @@ fn runnable_action(
|
|||
) -> Option<HoverAction> {
|
||||
match def {
|
||||
Definition::ModuleDef(it) => match it {
|
||||
ModuleDef::Module(it) => runnable_mod(sema, it).map(|it| HoverAction::Runnable(it)),
|
||||
ModuleDef::Module(it) => runnable_mod(sema, it).map(HoverAction::Runnable),
|
||||
ModuleDef::Function(func) => {
|
||||
let src = func.source(sema.db)?;
|
||||
if src.file_id != file_id.into() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue