From 1344392a92c06f9aa8c5cbc57b0f4e28568f5890 Mon Sep 17 00:00:00 2001 From: yuni Date: Sat, 30 Nov 2024 00:43:37 +0100 Subject: [PATCH] simplify implementation of Default for hud::IsClickable --- src/hud.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 618c558..4a8cc35 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -260,7 +260,7 @@ impl Message { } } -#[derive(Component)] +#[derive(Component, Default)] pub struct IsClickable { pub name: Option, pub pronoun: Option, @@ -268,17 +268,6 @@ pub struct IsClickable { pub distance: Option, pub disable_in_map: bool, } -impl Default for IsClickable { - fn default() -> Self { - Self { - name: None, - pronoun: None, - displayed_mass: None, - distance: None, - disable_in_map: false, - } - } -} #[derive(Resource)] pub struct Log {