From 083b59ed7b1968e281bdeede3e209e246ca19bde Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Mon, 13 Jan 2025 21:38:30 +0100 Subject: [PATCH] Format fix --- crates/rpack_cli/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/rpack_cli/src/lib.rs b/crates/rpack_cli/src/lib.rs index f98c0e9..49a69f2 100644 --- a/crates/rpack_cli/src/lib.rs +++ b/crates/rpack_cli/src/lib.rs @@ -1,10 +1,10 @@ use bevy_rpack::{AtlasFrame, SerializableRect}; use image::DynamicImage; -use thiserror::Error; use serde::{Deserialize, Serialize}; use serde_json::Value; use std::{fmt::Display, path::Path}; use texture_packer::{importer::ImageImporter, TexturePacker, TexturePackerConfig}; +use thiserror::Error; #[derive(Clone)] pub struct Spritesheet { @@ -36,7 +36,6 @@ impl ImageFile { } } - #[derive(Clone, Debug, Default, Copy, Serialize, Deserialize)] #[cfg_attr(feature = "cli", derive(clap::ValueEnum))] pub enum SaveImageFormat { @@ -63,7 +62,6 @@ impl From for image::ImageFormat { } } - /// Errors that can occur while building a `Spritesheet`. #[non_exhaustive] #[derive(Debug, Error)] @@ -272,5 +270,5 @@ pub struct TilemapGenerationConfig { pub asset_paths: Vec, pub output_path: String, pub format: SaveImageFormat, - pub size: u32 + pub size: u32, }