Skip to content

Commit 175e158

Browse files
committed
Corrected poor impl arrangement
1 parent cd97124 commit 175e158

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,6 @@ impl<'w, T: Component> AsRef<T> for Res<'w, T> {
213213
}
214214
}
215215

216-
impl<'w, T: Component> AsMut<T> for ResMut<'w, T> {
217-
fn as_mut(&mut self) -> &mut T {
218-
&mut *self
219-
}
220-
}
221-
222216
/// The [`SystemParamState`] of [`Res`].
223217
pub struct ResState<T> {
224218
component_id: ComponentId,
@@ -385,6 +379,12 @@ impl<'w, T: Component> AsRef<T> for ResMut<'w, T> {
385379
}
386380
}
387381

382+
impl<'w, T: Component> AsMut<T> for ResMut<'w, T> {
383+
fn as_mut(&mut self) -> &mut T {
384+
&mut *self
385+
}
386+
}
387+
388388
/// The [`SystemParamState`] of [`ResMut`].
389389
pub struct ResMutState<T> {
390390
component_id: ComponentId,

0 commit comments

Comments
 (0)