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
Okay, not sure if this is a bug at all. We determined it's because my editor was using tabs, not spaces, and cargo fmt was replacing the tabs with4 spaces but not performing any other work inside the block enclosed by the macro invocation.
We determined it's because my editor was using tabs, not spaces, and cargo fmt was replacing the tabs with4 spaces
Yup that'd do it. If you haven't seen it already, note you can leverage the hard_tabs config option to control that.
but not performing any other work inside the block enclosed by the macro invocation.
I'm not entirely clear what all other work inside the block would entail in the context of the snippet, but guessing you may be seeking something similar to #3445?
but not performing any other work inside the block enclosed by the macro invocation.
I'm not entirely clear what all other work inside the block would entail in the context of the snippet, but guessing you may be seeking something similar to #3445?
Yes, I think that issue you linked describes what indentation I'd expect to happen. Thank you! 😄
For example, this enum whose definition is supplemented by an enum, which is indented correctly:
will be formatted like this after running
cargo fmt
:Here is enumerate!'s definition.
The text was updated successfully, but these errors were encountered: