From 1c9ce2a4d328fb06aa16133af08858f9f415a921 Mon Sep 17 00:00:00 2001 From: futile Date: Sun, 20 Apr 2025 07:57:41 +0100 Subject: [PATCH] remember to place `to_color32` for `BlockedStatus` in the correct place --- src/features/game_networking.rs | 6 ------ src/gui/colours.rs | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/game_networking.rs b/src/features/game_networking.rs index 16f7481..c88c775 100644 --- a/src/features/game_networking.rs +++ b/src/features/game_networking.rs @@ -40,12 +40,6 @@ impl From for BlockedStatus { } } -impl BlockedStatus { - pub fn to_color32(self) -> eframe::egui::Color32 { - self.into() - } -} - #[derive(Debug)] pub struct GameNetworking { com_initialized: bool, diff --git a/src/gui/colours.rs b/src/gui/colours.rs index 8b04629..ffd2ad2 100644 --- a/src/gui/colours.rs +++ b/src/gui/colours.rs @@ -14,3 +14,9 @@ impl From for egui::Color32 { } } } + +impl BlockedStatus { + pub fn to_color32(self) -> egui::Color32 { + self.into() + } +}