Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 2, 2024
1 parent 08dab2e commit 0aee836
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/level_select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn level_select_enter(
align_items: AlignItems::Center,
..default()
},
BackgroundColor(color::UI_NORMAL_BUTTON.into()),
BackgroundColor(color::UI_NORMAL_BUTTON),
LevelSelectButton(i),
))
.with_children(|parent| {
Expand Down
2 changes: 1 addition & 1 deletion src/loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn loading_setup(
asset_server: Res<AssetServer>,
) {
commands.spawn((
Camera2d::default(),
Camera2d,
Transform::from_translation(Vec3::new(0., -10., 0.)),
Msaa::Sample4,
MainCamera,
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ fn show_score_dialog_system(
duration: Duration::from_secs_f32(0.7),
},
),
BackgroundColor(color::DIALOG_BACKGROUND.into()),
BackgroundColor(color::DIALOG_BACKGROUND),
ScoreDialog,
))
.with_children(|parent| {
Expand Down Expand Up @@ -720,7 +720,7 @@ fn show_score_dialog_system(
align_items: AlignItems::Center,
..default()
},
BackgroundColor(color::UI_NORMAL_BUTTON.into()),
BackgroundColor(color::UI_NORMAL_BUTTON),
BackButton,
))
.with_children(|parent| {
Expand Down
2 changes: 1 addition & 1 deletion src/pixie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub fn explode_pixies_system(mut commands: Commands, query: Query<(Entity, &Pixi
commands.spawn((
ShapeBundle {
path: GeometryBuilder::build_as(&shape),
transform: transform.clone(),
transform: *transform,
..default()
},
Fill::color(color::PIXIE[(pixie.flavor.color) as usize]),
Expand Down

0 comments on commit 0aee836

Please sign in to comment.