Closed Chanyon closed 2 years ago
It looks like rust-analyzer
's custom parser does not support leading |
in patterns. I filed an issue here.
In the meantime I recommend removing the leading |
and ignoring that code by placing // prettier-ignore
above it.
This issue has been fixed in rust-analyzer
.
From what I understand the fix should be part of next week's release, or tomorrow if you use rust-analyzer nightly.
Input code
Output code
Additional context
Insert extra symbols after format.
.