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| { root.with_children(|parent| {
let textStyle = TextStyle{ let text_style = TextStyle{
font: asset_server.load("fonts/FiraSans-Bold.ttf"), font: asset_server.load("fonts/FiraSans-Bold.ttf"),
font_size: 20.0, font_size: 20.0,
color: DEBUG_PINK, 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_text_alignment(TextAlignment::TOP_RIGHT)
.with_style(Style{ .with_style(Style{
align_self: AlignSelf::FlexEnd, align_self: AlignSelf::FlexEnd,
@ -48,7 +48,7 @@ fn init_view(mut commands: Commands, asset_server: Res<AssetServer>) {
}, },
..default() ..default()
}); });
parent.spawn_bundle(textBundle); parent.spawn_bundle(text_bundle);
}); });
} }

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

Loading…
Cancel
Save