From ffe364b94aa725621b7d91f040a1145fa731b2c1 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Tue, 1 Mar 2022 14:52:32 -0700 Subject: [PATCH] Use new default shorthand --- examples/2d/shapes.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/2d/shapes.rs b/examples/2d/shapes.rs index 6cf6a65f3cca60..fa47f3bd16fb4b 100644 --- a/examples/2d/shapes.rs +++ b/examples/2d/shapes.rs @@ -19,9 +19,9 @@ fn setup( sprite: Sprite { color: Color::rgb(0.25, 0.25, 0.75), custom_size: Some(Vec2::new(50.0, 100.0)), - ..Default::default() + ..default() }, - ..Default::default() + ..default() }); // Circle @@ -30,7 +30,7 @@ fn setup( material: materials.add(ColorMaterial::from(Color::PURPLE)), transform: Transform::from_translation(Vec3::new(-100., 0., 0.)) .with_scale(Vec2::splat(100.0).extend(1.)), - ..Default::default() + ..default() }); // Hexagon @@ -39,7 +39,7 @@ fn setup( .add( shape::RegularPolygon { sides: 6, - ..Default::default() + ..default() } .into(), ) @@ -47,6 +47,6 @@ fn setup( material: materials.add(ColorMaterial::from(Color::TURQUOISE)), transform: Transform::from_translation(Vec3::new(100., 0., 0.)) .with_scale(Vec2::splat(100.0).extend(1.)), - ..Default::default() + ..default() }); }