Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt work around rustc regression #4631

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/bevy_core/src/time/fixed_timestep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl FixedTimestep {

fn prepare_system(
mut state: LocalFixedTimestepState,
) -> impl FnMut(Res<Time>, ResMut<FixedTimesteps>) -> ShouldRun {
) -> impl FnMut(Res<'_, Time>, ResMut<'_, FixedTimesteps>) -> ShouldRun {
move |time, mut fixed_timesteps| {
let should_run = state.update(&time);
if let Some(ref label) = state.label {
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ mod tests {
move |world| world.resource_mut::<Vec<usize>>().push(tag)
}

fn make_parallel(tag: usize) -> impl FnMut(ResMut<Vec<usize>>) {
fn make_parallel(tag: usize) -> impl FnMut(ResMut<'_, Vec<usize>>) {
move |mut resource: ResMut<Vec<usize>>| resource.push(tag)
}

Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ impl<'w, 's> SystemParamFetch<'w, 's> for WorldState {
/// # use bevy_ecs::system::assert_is_system;
/// struct Config(u32);
/// struct Myu32Wrapper(u32);
/// fn reset_to_system(value: Config) -> impl FnMut(ResMut<Myu32Wrapper>) {
/// fn reset_to_system(value: Config) -> impl FnMut(ResMut<'_, Myu32Wrapper>) {
/// move |mut val| val.0 = value.0
/// }
///
Expand Down