diff --git a/backend/src/api/handler.rs b/backend/src/api/handler.rs index 83a2b9b..22ab7b5 100644 --- a/backend/src/api/handler.rs +++ b/backend/src/api/handler.rs @@ -45,13 +45,21 @@ impl core::fmt::Display for ApiMessage { Self::OnChargeChange(x) => write!(f, "OnChargeChange({:?})", x), Self::PowerVibeCheck => write!(f, "PowerVibeCheck"), Self::WaitForEmptyQueue(_) => write!(f, "WaitForEmptyQueue"), - Self::LoadSettings(path, name, variant, variant_name) => write!(f, "LoadSettings({}, {}, {}, {})", path, name, variant, variant_name), - Self::LoadVariant(variant, variant_name) => write!(f, "LoadVariant({}, {})", variant, variant_name), + Self::LoadSettings(path, name, variant, variant_name) => write!( + f, + "LoadSettings({}, {}, {}, {})", + path, name, variant, variant_name + ), + Self::LoadVariant(variant, variant_name) => { + write!(f, "LoadVariant({}, {})", variant, variant_name) + } Self::LoadMainSettings => write!(f, "LoadMainSettings"), Self::LoadSystemSettings => write!(f, "LoadSystemSettings"), Self::GetLimits(_) => write!(f, "GetLimits"), Self::GetProvider(s, _) => write!(f, "GetProvider({})", s), - Self::UploadCurrentVariant(id, user) => write!(f, "UploadCurrentVariant(id: {}, user: {})", id, user), + Self::UploadCurrentVariant(id, user) => { + write!(f, "UploadCurrentVariant(id: {}, user: {})", id, user) + } } } } @@ -392,9 +400,7 @@ impl ApiMessageHandler { messages.push(msg.to_string()); dirty |= self.process(settings, msg); } - if dirty - || dirty_echo - { + if dirty || dirty_echo { dirty_echo = dirty; // echo only once print_messages(&messages); // run on_set