clippy::redundant_closure

This commit is contained in:
Maan2003 2021-06-13 09:29:36 +05:30
parent 705f7e6e26
commit 75370312fb
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
12 changed files with 17 additions and 17 deletions

View file

@ -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() {