From 26569069038d60c05e935c45d34cc5c8099c798f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 3 Feb 2024 15:10:45 +0100 Subject: Rename `PlateformSpecific` variant in `Action` to `Custom` --- runtime/src/command/action.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/src/command') diff --git a/runtime/src/command/action.rs b/runtime/src/command/action.rs index d119141b..4592df5d 100644 --- a/runtime/src/command/action.rs +++ b/runtime/src/command/action.rs @@ -45,8 +45,8 @@ pub enum Action { tagger: Box) -> T>, }, - /// Pass PlatformSpecific action, for some special platform - PlatformSpecific(Box) + /// A custom action supported by a specific runtime. + Custom(Box), } impl Action { @@ -76,7 +76,7 @@ impl Action { bytes, tagger: Box::new(move |result| f(tagger(result))), }, - Self::PlatformSpecific(special) => Action::PlatformSpecific(special) + Self::Custom(custom) => Action::Custom(custom), } } } @@ -95,7 +95,7 @@ impl fmt::Debug for Action { Self::System(action) => write!(f, "Action::System({action:?})"), Self::Widget(_action) => write!(f, "Action::Widget"), Self::LoadFont { .. } => write!(f, "Action::LoadFont"), - Self::PlatformSpecific(_) => write!(f, "Action::PlatformSpecific") + Self::Custom(_) => write!(f, "Action::Custom"), } } } -- cgit