From 9d2909b43e04eff7bf47a1c091655de1885aa513 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Sun, 8 Mar 2020 20:29:21 -0700 Subject: [PATCH] cleanup --- examples/custom_shader.rs | 3 ++- examples/spawner.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/custom_shader.rs b/examples/custom_shader.rs index 70a27b0233..02b6d4f39a 100644 --- a/examples/custom_shader.rs +++ b/examples/custom_shader.rs @@ -92,6 +92,7 @@ fn setup(world: &mut World) { color: Vec4::new(0.0, 0.8, 0.0, 1.0), always_red: false, }, + translation: Translation::new(-2.0, 0.0, 0.0), ..Default::default() }) // cube @@ -105,7 +106,7 @@ fn setup(world: &mut World) { color: Vec4::new(0.0, 0.0, 0.0, 1.0), always_red: true, }, - translation: Translation::new(3.0, 0.0, 0.0), + translation: Translation::new(2.0, 0.0, 0.0), ..Default::default() }) // camera diff --git a/examples/spawner.rs b/examples/spawner.rs index 3a4ccf7e54..36bf641de6 100644 --- a/examples/spawner.rs +++ b/examples/spawner.rs @@ -1,4 +1,4 @@ -use bevy::{asset, prelude::*}; +use bevy::prelude::*; use rand::{rngs::StdRng, Rng, SeedableRng}; use std::collections::VecDeque;