Skip to content

Commit c32e431

Browse files
committed
cargo fmt --all
1 parent d8c6a80 commit c32e431

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

examples/collider.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ fn main() {
8484
let _ = game.add_sprite("sprite", path);
8585

8686
// Print instructions to the console
87-
println!("\n\
87+
println!(
88+
"\n\
8889
Collider Instructions:\n\
8990
\n\
9091
1-9: Set Zoom level (sprite scale) to this amount.\n\
@@ -96,7 +97,8 @@ fn main() {
9697
-: Decrease the radius by 0.5 and generate a circle collider*\n\
9798
w: Write the collider file. NOTE: This will overwrite the existing collider file (if any), so make a backup if you need the old one!\n\
9899
\n\
99-
*This command deletes the current collider in memory, but only writing the collider file will affect the collider file on disk.");
100+
*This command deletes the current collider in memory, but only writing the collider file will affect the collider file on disk."
101+
);
100102

101103
// Tell the user to look to the console for the instructions
102104
let msg = game.add_text("msg", "See console output for instructions.");

examples/level_creator.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ fn logic(engine: &mut Engine, game_state: &mut GameState) {
164164
sprite.layer,
165165
);
166166
}
167-
println!("\n game.add_logic(logic);\n game.run(GameState {{}});\n}}\n\nfn logic(engine: &mut Engine, game_state: &mut GameState) {{\n // Game Logic Goes Here\n}}")
167+
println!(
168+
"\n game.add_logic(logic);\n game.run(GameState {{}});\n}}\n\nfn logic(engine: &mut Engine, game_state: &mut GameState) {{\n // Game Logic Goes Here\n}}"
169+
)
168170
}
169171

170172
// Handle current sprite that has not yet been placed

src/game.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ impl<S: Resource + Send + Sync + 'static> Game<S> {
277277
/// Create an new, empty [`Game`] with an empty [`Engine`]
278278
pub fn new() -> Self {
279279
if std::fs::read_dir("assets").is_err() {
280-
println!("FATAL: Could not find assets directory. Have you downloaded the assets?\nhttps://github.com/CleanCut/rusty_engine#you-must-download-the-assets-separately");
280+
println!(
281+
"FATAL: Could not find assets directory. Have you downloaded the assets?\nhttps://github.com/CleanCut/rusty_engine#you-must-download-the-assets-separately"
282+
);
281283
std::process::exit(1);
282284
}
283285
Default::default()

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ pub mod text;
7575

7676
// Public prelude
7777
pub mod prelude {
78-
pub use crate::{audio::*, game::*, keyboard::*, mouse::*, physics::*, sprite::*, text::*};
7978
pub use crate::{
8079
DOWN, EAST, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, UP,
8180
WEST,
8281
};
82+
pub use crate::{audio::*, game::*, keyboard::*, mouse::*, physics::*, sprite::*, text::*};
8383
pub use bevy::ecs as bevy_ecs;
8484
pub use bevy::{
8585
self,

src/mouse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use bevy::{platform::collections::HashSet, prelude::*};
66
// Re-export some Bevy types to use
77
pub use bevy::{
88
input::{
9-
mouse::{MouseButton, MouseButtonInput, MouseMotion, MouseWheel},
109
ButtonState,
10+
mouse::{MouseButton, MouseButtonInput, MouseMotion, MouseWheel},
1111
},
1212
window::CursorMoved,
1313
};

0 commit comments

Comments
 (0)