mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
cleaning
This commit is contained in:
parent
3bba811e92
commit
0a80cc82b1
3 changed files with 6 additions and 3 deletions
|
@ -241,7 +241,9 @@ impl TypeRef {
|
|||
fn go(type_ref: &TypeRef, f: &mut impl FnMut(&TypeRef)) {
|
||||
f(type_ref);
|
||||
match type_ref {
|
||||
TypeRef::Fn(types, _) => types.iter().for_each(|t| go(&t.1, f)),
|
||||
TypeRef::Fn(params, _) => {
|
||||
params.iter().for_each(|(_, param_type)| go(¶m_type, f))
|
||||
}
|
||||
TypeRef::Tuple(types) => types.iter().for_each(|t| go(t, f)),
|
||||
TypeRef::RawPtr(type_ref, _)
|
||||
| TypeRef::Reference(type_ref, ..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue