Skip to content

Commit c417105

Browse files
committed
Remove redundant must_use and clarify doc
1 parent c31366d commit c417105

File tree

1 file changed

+1
-2
lines changed
  • crates/bevy_ecs/src/entity

1 file changed

+1
-2
lines changed

crates/bevy_ecs/src/entity/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ pub(crate) enum AllocAtWithoutReplacement {
200200

201201
impl Entity {
202202
/// Construct an [`Entity`] from a raw `index` value and a non-zero `generation` value.
203-
/// Ensure that the generation value is never greater than `0x3FFF_FFFF`.
203+
/// Ensure that the masked generation value is never greater than `0x3FFF_FFFF`.
204204
#[inline(always)]
205-
#[must_use]
206205
pub(crate) const fn from_raw_and_generation(index: u32, generation: NonZeroU32) -> Entity {
207206
Self { index, generation }
208207
}

0 commit comments

Comments
 (0)