From 40da77db85b7fd60d2d0213290f434733bbeb470 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 6 Sep 2022 20:24:27 -0500 Subject: [PATCH] cleaning up some dumb warnings --- src/debug_view.rs | 6 +++--- src/input.rs | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/debug_view.rs b/src/debug_view.rs index 8daadce..03b69eb 100644 --- a/src/debug_view.rs +++ b/src/debug_view.rs @@ -31,12 +31,12 @@ fn init_view(mut commands: Commands, asset_server: Res) { }); root.with_children(|parent| { - let textStyle = TextStyle{ + let text_style = TextStyle{ font: asset_server.load("fonts/FiraSans-Bold.ttf"), font_size: 20.0, color: DEBUG_PINK, }; - let textBundle = TextBundle::from_section("fart", textStyle) + let text_bundle = TextBundle::from_section("fart", text_style) .with_text_alignment(TextAlignment::TOP_RIGHT) .with_style(Style{ align_self: AlignSelf::FlexEnd, @@ -48,7 +48,7 @@ fn init_view(mut commands: Commands, asset_server: Res) { }, ..default() }); - parent.spawn_bundle(textBundle); + parent.spawn_bundle(text_bundle); }); } diff --git a/src/input.rs b/src/input.rs index 57810ee..afe8670 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,7 +1,4 @@ -use bevy::{ - input::{keyboard::KeyCode, Input}, - prelude::*, -}; +use bevy::input::{keyboard::KeyCode, Input}; #[derive(Default, Debug)] pub struct PlayerInput {