Skip to content

Commit 31caf80

Browse files
fix lints
1 parent 2597f0d commit 31caf80

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
@@ -386,7 +386,7 @@ impl<'w> InteriorMutableEntityRef<'w> {
386386
last_change_tick: u32,
387387
change_tick: u32,
388388
) -> Option<Mut<'w, T>> {
389-
// # Safety
389+
// SAFETY:
390390
// - `storage_type` is correct
391391
// - `location` is valid
392392
// - 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
@@ -117,7 +117,7 @@ impl World {
117117
}
118118

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

0 commit comments

Comments
 (0)