Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/replace_try_expr_with_match.rs')
| -rw-r--r-- | crates/ide-assists/src/handlers/replace_try_expr_with_match.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ide-assists/src/handlers/replace_try_expr_with_match.rs b/crates/ide-assists/src/handlers/replace_try_expr_with_match.rs index b825998cb7..38fccb3382 100644 --- a/crates/ide-assists/src/handlers/replace_try_expr_with_match.rs +++ b/crates/ide-assists/src/handlers/replace_try_expr_with_match.rs @@ -34,7 +34,10 @@ use crate::assist_context::{AssistContext, Assists}; // }; // } // ``` -pub(crate) fn replace_try_expr_with_match(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> { +pub(crate) fn replace_try_expr_with_match( + acc: &mut Assists, + ctx: &AssistContext<'_>, +) -> Option<()> { let qm_kw = ctx.find_token_syntax_at_offset(T![?])?; let qm_kw_parent = qm_kw.parent().and_then(ast::TryExpr::cast)?; |