fix formatting

and remove unnecessary check
This commit is contained in:
Kartavya Vashishtha 2022-11-19 11:34:49 +05:30
parent a778203db9
commit 8b17681058
No known key found for this signature in database
GPG key ID: A50012C2324E5DF0
2 changed files with 7 additions and 5 deletions

View file

@ -268,8 +268,7 @@ fn hover_type_fallback(
}
};
let res =
render::type_info(sema, config, &expr_or_pat)
let res = render::type_info(sema, config, &expr_or_pat)
.or_else(|| render::struct_rest_pat(sema, config, &expr_or_pat))?;
let range = sema