mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Turn Ty::Tuple variant into a tuple-variant
This commit is contained in:
parent
2fc137b70f
commit
0e995adcf6
8 changed files with 20 additions and 22 deletions
|
@ -330,7 +330,7 @@ impl HirDisplay for Ty {
|
|||
write!(f, "{}", ty_display)?;
|
||||
}
|
||||
}
|
||||
Ty::Tuple { substs, .. } => {
|
||||
Ty::Tuple(_, substs) => {
|
||||
if substs.len() == 1 {
|
||||
write!(f, "(")?;
|
||||
substs[0].hir_fmt(f)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue