[Merged by Bors] - Cargo fmt with unstable features #1903
Conversation
|
This is just |
crates/bevy_render/src/mesh/mesh.rs
Outdated
| /// Where the vertex is located in space. Use in conjunction with [`Mesh::set_attribute`] | ||
| pub const ATTRIBUTE_POSITION: &'static str = "Vertex_Position"; | ||
| /// The direction of the vertex tangent. Used for normal mapping | ||
| pub const ATTRIBUTE_TANGENT: &'static str = "Vertex_Tangent"; |
This should stay next to normal.
How do I signal to cargo fmt not to immediately make this change again?
#[rustfmt::ignore] maybe?
Nope, crashes with error: invalid attribute.
Looks like #[rustfmt::skip] is the correct incantation.
Which, of course, doesn't actually stop it from reordering. @bjorn3, before I waste an hour on this, how much do you care?
I personally think we could just as easily disable the option - 7212b70 doesn't explain why it was enabled.
Additionally, it currently seems like the option, to put it kindly, needs work - see rust-lang/rustfmt#2792 (comment)
I agree with you there. @cart, do we have your blessing?
Yup lets just disable it. Using order to semantically group things does seem valid in some contexts.
This option has been removed!
Not desired behavior
|
@cart this is done now with the option removed. Please merge this ASAP so I can stop rebasing <3 |
|
bors r+ |
Fresh version of #1670 off the latest main. Mostly fixing documentation wrapping.
|
Pull request successfully merged into main. Build succeeded: |
Fresh version of bevyengine#1670 off the latest main. Mostly fixing documentation wrapping.


Fresh version of #1670 off the latest main.
Mostly fixing documentation wrapping.
The text was updated successfully, but these errors were encountered: