mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
redundant_closure
This commit is contained in:
parent
3cf1358eb8
commit
5a62a0db46
4 changed files with 6 additions and 10 deletions
|
@ -3152,7 +3152,7 @@ impl DeriveHelper {
|
|||
.and_then(|it| it.get(self.idx as usize))
|
||||
.cloned(),
|
||||
}
|
||||
.unwrap_or_else(|| Name::missing())
|
||||
.unwrap_or_else(Name::missing)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4421,7 +4421,7 @@ impl Type {
|
|||
traits_in_scope,
|
||||
with_local_impls.and_then(|b| b.id.containing_block()).into(),
|
||||
name,
|
||||
&mut |id| callback(id),
|
||||
callback,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue