rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Fix #5488 - prevent shorthand init for tuple struct

Open RajivTS opened this issue 3 years ago • 0 comments

Closes #5488

Fix for #5488. Before applying shorthand initialization for structs, check if identifier is a literal (e.g. tuple struct). If yes, then do not apply short hand initialization.

Added test case to validate the changes for the fix.

RajivTS avatar Aug 27 '22 23:08 RajivTS