From b2145131ccde0a33b9840ac04c8b7d79e733ae12 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 8 Jan 2025 11:14:01 +0100 Subject: reset --- client/src/world/helper.rs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 client/src/world/helper.rs (limited to 'client/src/world/helper.rs') diff --git a/client/src/world/helper.rs b/client/src/world/helper.rs deleted file mode 100644 index cb34a9f..0000000 --- a/client/src/world/helper.rs +++ /dev/null @@ -1,19 +0,0 @@ -use std::fmt::Display; - -#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] -#[repr(C)] -pub struct Color { - pub a: u8, - pub r: u8, - pub g: u8, - pub b: u8, -} - -impl Display for Color { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - f.write_fmt(format_args!( - "#{:02x}{:02x}{:02x}{:02x}", - self.r, self.g, self.b, self.a - )) - } -} -- cgit v1.2.3-70-g09d2