We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1b624 commit bfdb0e7Copy full SHA for bfdb0e7
1 file changed
crates/ide-assists/src/handlers/desugar_try_expr.rs
@@ -61,7 +61,7 @@ pub(crate) fn desugar_try_expr(acc: &mut Assists, ctx: &AssistContext<'_>) -> Op
61
let expr = try_expr.expr()?;
62
let expr_type_info = ctx.sema.type_of_expr(&expr)?;
63
64
- let try_enum = TryEnum::from_ty_without_strip(&ctx.sema, &expr_type_info.original)?;
+ let try_enum = TryEnum::from_ty(&ctx.sema, &expr_type_info.original)?;
65
66
let target = try_expr.syntax().text_range();
67
acc.add(
0 commit comments