Reverse of "don't format this" for rustfmt?

I noticed that the arms in tokio::select! { } aren't formatted by rustfmt, which I guess is understandable. But I'm curious if there's a way to, as it's possible to selectively disable formatting in parts of a file, explicitly tell it "hey, I know this file is a little confusing, but from here to here I promise that I'll not pull any shenanigans, so please format this block"?

(I suspect there isn't, but I just want to make sure).

1 Like

I don't think so, but we could really use it for the source code of Tokio if there is.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.