mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
redundant_pattern_matching
This commit is contained in:
parent
5a62a0db46
commit
71d4dba960
17 changed files with 39 additions and 46 deletions
|
@ -2217,7 +2217,7 @@ impl Evaluator<'_> {
|
|||
let generic_args = generic_args.clone();
|
||||
match def {
|
||||
CallableDefId::FunctionId(def) => {
|
||||
if let Some(_) = self.detect_fn_trait(def) {
|
||||
if self.detect_fn_trait(def).is_some() {
|
||||
return self.exec_fn_trait(
|
||||
def,
|
||||
args,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue