Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ickshonpe committed Aug 29, 2023
1 parent 0def05b commit 0e535a1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions examples/stress_tests/many_buttons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! //! To start the demo without borders run
//! `cargo run --example many_buttons --release no-borders`
//!
//!
//! To start the demo without images run
//! `cargo run --example many_buttons --release no-images`
//!
Expand Down Expand Up @@ -78,13 +78,12 @@ fn button_system(

fn setup(mut commands: Commands, assets: Res<AssetServer>) {
warn!(include_str!("warning_string.txt"));
let image =
if !std::env::args().any(|arg| arg == "no-images") {
Some(assets.load("branding/icon.png"))
} else {
None
};

let image = if !std::env::args().any(|arg| arg == "no-images") {
Some(assets.load("branding/icon.png"))
} else {
None
};

let count = ROW_COLUMN_COUNT;
let count_f = count as f32;
let as_rainbow = |i: usize| Color::hsl((i as f32 / count_f) * 360.0, 0.9, 0.8);
Expand Down

0 comments on commit 0e535a1

Please sign in to comment.