Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jul 16, 2021
1 parent b3008c9 commit 2f954dc
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -689,7 +689,7 @@ unsafe impl<T: Component + Default> SystemParamState for LocalState<T, local_val

fn init(_world: &mut World, _system_meta: &mut SystemMeta, config: Self::Config) -> Self {
Self {
value: config.unwrap_or_else(|| T::default()),
value: config.unwrap_or_else(T::default),
value_from: Default::default(),
}
}
Expand Down

0 comments on commit 2f954dc

Please sign in to comment.