From ccbe379d01ba87d642b520394190e0c2cd382fc2 Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Fri, 4 Aug 2023 23:15:39 +0200 Subject: [PATCH] Fix clippy warnings --- bevy_asset_loader/examples/progress_tracking.rs | 2 +- bevy_asset_loader/src/dynamic_asset.rs | 2 +- bevy_asset_loader/src/loading_state.rs | 4 ++-- bevy_asset_loader/src/loading_state/systems.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bevy_asset_loader/examples/progress_tracking.rs b/bevy_asset_loader/examples/progress_tracking.rs index bb46e04..3683a62 100644 --- a/bevy_asset_loader/examples/progress_tracking.rs +++ b/bevy_asset_loader/examples/progress_tracking.rs @@ -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::() .add_loading_state(LoadingState::new(MyStates::AssetLoading)) diff --git a/bevy_asset_loader/src/dynamic_asset.rs b/bevy_asset_loader/src/dynamic_asset.rs index 4fbb42d..53558b1 100644 --- a/bevy_asset_loader/src/dynamic_asset.rs +++ b/bevy_asset_loader/src/dynamic_asset.rs @@ -109,7 +109,7 @@ impl Default for DynamicAssetCollections { fn default() -> Self { DynamicAssetCollections { files: HashMap::default(), - _marker: PhantomData::default(), + _marker: PhantomData, } } } diff --git a/bevy_asset_loader/src/loading_state.rs b/bevy_asset_loader/src/loading_state.rs index ff8b745..3b77bc9 100644 --- a/bevy_asset_loader/src/loading_state.rs +++ b/bevy_asset_loader/src/loading_state.rs @@ -486,7 +486,7 @@ impl States for InternalLoadingState { Self::LoadingDynamicAssetCollections, Self::LoadingAssets, Self::Finalize, - Self::Done(PhantomData::default()), + Self::Done(PhantomData), ] .into_iter() } @@ -755,7 +755,7 @@ where { fn new() -> Self { InternalAssetLoaderPlugin { - _state_marker: PhantomData::default(), + _state_marker: PhantomData, } } } diff --git a/bevy_asset_loader/src/loading_state/systems.rs b/bevy_asset_loader/src/loading_state/systems.rs index 889317e..524d6d2 100644 --- a/bevy_asset_loader/src/loading_state/systems.rs +++ b/bevy_asset_loader/src/loading_state/systems.rs @@ -173,7 +173,7 @@ pub(crate) fn finish_loading_state( } } - loading_state.set(InternalLoadingState::Done(PhantomData::default())); + loading_state.set(InternalLoadingState::Done(PhantomData)); } pub(crate) fn reset_loading_state(world: &mut World) {