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
I have a use-case in which I have sometimes very large mathematical expressions which, for the sake of code clarity, are contained in a separate file and included into the code with the include! macro.
It would be nice if rustfmt could format these included files as well. Currently it is unable to do so as they are not valid rust code on their own.
I have a use-case in which I have sometimes very large mathematical expressions which, for the sake of code clarity, are contained in a separate file and included into the code with the
include!
macro.It would be nice if rustfmt could format these included files as well. Currently it is unable to do so as they are not valid rust code on their own.
A very simple example would be:
func.inc.rs
main.rs
Is there any way that
rustfmt
could formatfunc.inc.rs
? Or could this be implemented in the future?The text was updated successfully, but these errors were encountered: