You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Worth noting, I didn't observe this behavior with structs, enums, unions and expanding the comment's scope to include the pub, it behaves correctly with this:
/* pub (crate) */traitMyTrait{}
getting reformatted to:
/* pub (crate) */traitMyTrait{}
The text was updated successfully, but these errors were encountered:
miraclx
changed the title
Comment in trait visibility position duplicates the entire trait
Comment in trait visibility position causes token duplication
May 6, 2024
Just noticed some weird behaviour, not sure if it's been reported already, I tried searching but I'm not sure how to classify it
this:
gets reformatted as:
Test:
Worth noting, I didn't observe this behavior with
struct
s,enum
s,union
s and expanding the comment's scope to include thepub
, it behaves correctly with this:getting reformatted to:
The text was updated successfully, but these errors were encountered: