mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-25 21:04:32 +00:00
more clippy fixes:
clippy::search_is_some clippy::redundant_static_lifetimes clippy::match_single_binding clippy::match_ref_pats clippy::map_entry clippy::manual_map clippy::iter_overeager_cloned clippy::into_iter_on_ref clippy::extra_unused_lifetimes
This commit is contained in:
parent
56e4ea59d9
commit
5a0078c9d1
6 changed files with 15 additions and 24 deletions
|
@ -392,10 +392,8 @@ 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) {
|
||||
Some(Self::MethodCall(it))
|
||||
} else {
|
||||
None
|
||||
ast::MethodCallExpr::cast(syntax).map(Self::MethodCall)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue