From 6f0997705fff3d2d6b7ec8274eb75ae802496fe0 Mon Sep 17 00:00:00 2001 From: TelepathicWalrus Date: Sun, 30 Apr 2023 18:24:51 +0100 Subject: [PATCH] Clean code --- common/src/comp/pet.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/common/src/comp/pet.rs b/common/src/comp/pet.rs index f2a701393b..270d08b547 100644 --- a/common/src/comp/pet.rs +++ b/common/src/comp/pet.rs @@ -116,19 +116,11 @@ pub enum StayFollow{ Follow, } -#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PetState{ pub stay: bool, } -impl Default for PetState { - fn default() -> Self { - Self { - stay: false, - } - } -} - impl PetState { pub fn get_state(&self) -> bool{ self.stay