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
# Objective
- #17111
## Solution
Set the `clippy::allow_attributes` and
`clippy::allow_attributes_without_reason` lints to `deny`, and bring
`bevy_mesh` in line with the new restrictions.
## Testing
`cargo clippy --tests` and `cargo test --package bevy_mesh` were run,
and no errors were encountered.
reason = "Although the `vec` binding on some match arms may have different types, each variant has different semantics; thus it's not guaranteed that they will use the same type forever."
reason = "Although the bindings on some match arms may have different types, each variant has different semantics; thus it's not guaranteed that they will use the same type forever."
/// Returns the number of vertices in this [`VertexAttributeValues`]. For a single
251
249
/// mesh, all of the [`VertexAttributeValues`] must have the same length.
252
-
#[allow(clippy::match_same_arms)]
250
+
#[expect(
251
+
clippy::match_same_arms,
252
+
reason = "Although the `values` binding on some match arms may have matching types, each variant has different semantics; thus it's not guaranteed that they will use the same type forever."
// TODO: add vertex format as parameter here and perform type conversions
300
301
/// Flattens the [`VertexAttributeValues`] into a sequence of bytes. This is
301
302
/// useful for serialization and sending to the GPU.
302
-
#[allow(clippy::match_same_arms)]
303
+
#[expect(
304
+
clippy::match_same_arms,
305
+
reason = "Although the `values` binding on some match arms may have matching types, each variant has different semantics; thus it's not guaranteed that they will use the same type forever."
0 commit comments