mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 04:18:20 +00:00
Merge #10504
10504: Remove needless clone r=lnicola a=k-nasa ## Why Delete clones for efficiency ## What - I erased unnecessary clones Co-authored-by: k-nasa <htilcs1115@gmail.com>
This commit is contained in:
commit
64ca0f63bf
8 changed files with 10 additions and 10 deletions
|
|
@ -336,7 +336,7 @@ impl AstNode for CallableExpr {
|
|||
{
|
||||
if let Some(it) = ast::CallExpr::cast(syntax.clone()) {
|
||||
Some(Self::Call(it))
|
||||
} else if let Some(it) = ast::MethodCallExpr::cast(syntax.clone()) {
|
||||
} else if let Some(it) = ast::MethodCallExpr::cast(syntax) {
|
||||
Some(Self::MethodCall(it))
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue