It seems that this plugin does always add an EOF (end of file newline). Specifically for functions it does not do that. If you have a file with just a comment // test it does make it into // test\n.
That said, in the following piece of code rust prettier does NOT add a newline.
Input code
Output code
Additional context
It seems that this plugin does always add an EOF (end of file newline). Specifically for functions it does not do that. If you have a file with just a comment
// test
it does make it into// test\n
.That said, in the following piece of code rust prettier does NOT add a newline.