Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jan 8, 2025
1 parent 89f85be commit dec99f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tooling/lsp/src/requests/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,7 @@ fn get_trait_impl_func_id(
args: &ProcessRequestCallbackArgs,
func_meta: &FuncMeta,
) -> Option<FuncId> {
if func_meta.trait_id.is_none() {
return None;
}
func_meta.trait_id?;

let index = args.interner.find_location_index(args.location)?;
let expr_id = args.interner.get_expr_id_from_index(index)?;
Expand Down

0 comments on commit dec99f2

Please sign in to comment.