Skip to content

Commit 73e08ff

Browse files
fix lints
1 parent cbbacfa commit 73e08ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bevy_ecs/src/world/interior_mutable_world.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl<'w> InteriorMutableWorld<'w> {
8282
/// **Note**: You *must not* hand out a `&World` reference to arbitrary safe code when the [`InteriorMutableWorld`] is currently
8383
/// being used for mutable accesses.
8484
///
85-
/// SAFETY:
85+
/// # Safety:
8686
/// - the world must not be used to access any resources or components. You can use it to safely access metadata.
8787
pub unsafe fn world(&self) -> &'w World {
8888
self.0
@@ -409,7 +409,7 @@ impl<'w> InteriorMutableEntityRef<'w> {
409409
last_change_tick: u32,
410410
change_tick: u32,
411411
) -> Option<Mut<'w, T>> {
412-
// # Safety
412+
// SAFETY:
413413
// - `storage_type` is correct
414414
// - `location` is valid
415415
// - aliasing rules are ensured by caller

crates/bevy_ecs/src/world/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl World {
116116
}
117117

118118
/// Creates a new [`InteriorMutableWorld`] with read+write access from a [&World](World).
119-
/// This is only a temporary measure until every `&World` that is semantically a [InteriorMutableWorld]
119+
/// This is only a temporary measure until every `&World` that is semantically a [`InteriorMutableWorld`]
120120
/// has been replaced.
121121
pub(crate) fn as_interior_mutable_migration_internal(&self) -> InteriorMutableWorld<'_> {
122122
InteriorMutableWorld::new(self)

0 commit comments

Comments
 (0)