mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
feat: improve name generation in destructure_tuple_binding
This commit is contained in:
parent
f50969b239
commit
cb1533f7e9
3 changed files with 49 additions and 33 deletions
|
@ -377,6 +377,8 @@ fn name_of_type(ty: &hir::Type, db: &RootDatabase, edition: Edition) -> Option<S
|
|||
return None;
|
||||
}
|
||||
name
|
||||
} else if let Some(inner_ty) = ty.remove_ref() {
|
||||
return name_of_type(&inner_ty, db, edition);
|
||||
} else {
|
||||
return None;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue