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
@barafael unfortunately, rustfmt doesn't format rust code blocks in markdown files, so what you're trying to do won't work. There's an open issue for formatting rust code blocks in markdown files, but i's pretty low priority right now #2036.
That being said, when you don't pass a file to rustfmt like rustfmt /path/to/file.rs rustfmt expects that the input you want to format will come from stdin. You can see this comment and the following discussion for more details.
I ran
rustfmt
like this:This puts
rustfmt
in a prompt where it awaits terminal input. When I hitCTRL+D
to terminate, I get:This also happens when the file in question ends with
.rs
.This behaviour is similar to passing
"stdin"
as file.I am wondering if I am using this incorrectly or what is going on here?
The text was updated successfully, but these errors were encountered: