From 069b54f86b23ca6e99811e1893d1f3aaa9d4a607 Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Sat, 4 Jun 2022 16:54:22 +1000 Subject: [PATCH] rustfmt modals api --- services/modals/src/api.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/services/modals/src/api.rs b/services/modals/src/api.rs index 371075088..eaf2c797c 100644 --- a/services/modals/src/api.rs +++ b/services/modals/src/api.rs @@ -1,8 +1,7 @@ use gam::modal::*; -#[cfg(feature="ditherpunk")] +#[cfg(feature = "ditherpunk")] use gam::Tile; - pub(crate) const SERVER_NAME_MODALS: &str = "_Modal Dialog Server_"; #[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)] @@ -45,7 +44,7 @@ pub struct ManagedNotification { } #[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)] -#[cfg(feature="ditherpunk")] +#[cfg(feature = "ditherpunk")] pub struct ManagedImage { pub token: [u32; 4], pub tiles: [Option; 6], @@ -84,7 +83,7 @@ pub(crate) enum Opcode { /// simple notification Notification, /// display an image - #[cfg(feature="ditherpunk")] + #[cfg(feature = "ditherpunk")] Image, /// dynamic notification - a simple non-interactive notification that allows its text to be dynamically updated DynamicNotification, @@ -127,7 +126,7 @@ pub(crate) enum Opcode { RadioReturn, CheckBoxReturn, NotificationReturn, - #[cfg(feature="ditherpunk")] + #[cfg(feature = "ditherpunk")] ImageReturn, DoUpdateDynamicNotification,