cleaning up some dumb warnings

main
Jordan Orelli 2 years ago
parent 7adf3a01d0
commit 40da77db85

@ -31,12 +31,12 @@ fn init_view(mut commands: Commands, asset_server: Res<AssetServer>) {
});
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<AssetServer>) {
},
..default()
});
parent.spawn_bundle(textBundle);
parent.spawn_bundle(text_bundle);
});
}

@ -1,7 +1,4 @@
use bevy::{
input::{keyboard::KeyCode, Input},
prelude::*,
};
use bevy::input::{keyboard::KeyCode, Input};
#[derive(Default, Debug)]
pub struct PlayerInput {

Loading…
Cancel
Save