Skip to content

Commit

Permalink
rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Feb 28, 2024
1 parent 3786a43 commit 8001e31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ mod systems;
// default universe size if none specified
const DEFAULT_UNIVERSE_SIZE: usize = 20;

//meshes
// meshes
const MESH_TETRA_BYTES: &'static [u8] = include_bytes!("../assets/mesh/hill-tetrahedron.obj");
const MESH_TETRA_MIRRORED_BYTES: &'static [u8] =
include_bytes!("../assets/mesh/hill-tetrahedron-mirrored.obj");
//fonts
// fonts
const FONT_BYTES: &'static [u8] = include_bytes!("../assets/font/square.ttf");
// application icon
const ICON: &'static [u8] = include_bytes!("../assets/hills-tetrahedron.png");
@@ -150,7 +150,9 @@ fn set_window_icon(
// here we use the `image` crate to load our icon data from a png file
// this is not a very bevy-native solution, but it will do
let (icon_rgba, icon_width, icon_height) = {
let image = image::load_from_memory(ICON).expect("Error loading logo image").to_rgba8();
let image = image::load_from_memory(ICON)
.expect("Error loading logo image")
.to_rgba8();
let (width, height) = image.dimensions();
let rgba = image.into_raw();
(rgba, width, height)

0 comments on commit 8001e31

Please sign in to comment.