Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/inline_local_variable.rs')
| -rw-r--r-- | crates/ide-assists/src/handlers/inline_local_variable.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide-assists/src/handlers/inline_local_variable.rs b/crates/ide-assists/src/handlers/inline_local_variable.rs index 65dc2a0d51..3d9242ad71 100644 --- a/crates/ide-assists/src/handlers/inline_local_variable.rs +++ b/crates/ide-assists/src/handlers/inline_local_variable.rs @@ -88,7 +88,6 @@ pub(crate) fn inline_local_variable(acc: &mut Assists, ctx: &AssistContext) -> O | ast::Expr::MethodCallExpr(_) | ast::Expr::FieldExpr(_) | ast::Expr::TryExpr(_) - | ast::Expr::RefExpr(_) | ast::Expr::Literal(_) | ast::Expr::TupleExpr(_) | ast::Expr::ArrayExpr(_) @@ -575,7 +574,7 @@ fn foo() { r" fn foo() { let bar = 10; - let b = &bar * 10; + let b = (&bar) * 10; }", ); } |