Skip to content

Commit 771c87f

Browse files
committed
no PathExpr arm
1 parent 8c0b848 commit 771c87f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/ide_assists/src/handlers/extract_variable.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ fn get_receiver(expression: ast::Expr) -> Option<ast::Expr> {
172172
let nested_expression = &field.expr()?;
173173
get_receiver(nested_expression.to_owned())
174174
}
175-
ast::Expr::PathExpr(_) => Some(expression),
176-
_ => None,
175+
_ => Some(expression),
177176
}
178177
}
179178

0 commit comments

Comments
 (0)