Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Aug 4, 2023
1 parent ce52620 commit ccbe379
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bevy_asset_loader/examples/progress_tracking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
DefaultPlugins,
// track progress during `MyStates::AssetLoading` and continue to `MyStates::Next` when progress is completed
ProgressPlugin::new(MyStates::AssetLoading).continue_to(MyStates::Next),
FrameTimeDiagnosticsPlugin::default(),
FrameTimeDiagnosticsPlugin,
))
.add_state::<MyStates>()
.add_loading_state(LoadingState::new(MyStates::AssetLoading))
Expand Down
2 changes: 1 addition & 1 deletion bevy_asset_loader/src/dynamic_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<State: States> Default for DynamicAssetCollections<State> {
fn default() -> Self {
DynamicAssetCollections {
files: HashMap::default(),
_marker: PhantomData::default(),
_marker: PhantomData,
}
}
}
4 changes: 2 additions & 2 deletions bevy_asset_loader/src/loading_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl<S: States> States for InternalLoadingState<S> {
Self::LoadingDynamicAssetCollections,
Self::LoadingAssets,
Self::Finalize,
Self::Done(PhantomData::default()),
Self::Done(PhantomData),
]
.into_iter()
}
Expand Down Expand Up @@ -755,7 +755,7 @@ where
{
fn new() -> Self {
InternalAssetLoaderPlugin {
_state_marker: PhantomData::default(),
_state_marker: PhantomData,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion bevy_asset_loader/src/loading_state/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub(crate) fn finish_loading_state<S: States>(
}
}

loading_state.set(InternalLoadingState::Done(PhantomData::default()));
loading_state.set(InternalLoadingState::Done(PhantomData));
}

pub(crate) fn reset_loading_state<S: States>(world: &mut World) {
Expand Down

0 comments on commit ccbe379

Please sign in to comment.