summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-03 15:10:45 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-03 15:10:45 +0100
commit26569069038d60c05e935c45d34cc5c8099c798f (patch)
tree53019e0702b540c2b9a3f67b92968894d47e40be /runtime
parent6e97595d953811fe3f5877e13022c3b5d3b070a6 (diff)
downloadiced-26569069038d60c05e935c45d34cc5c8099c798f.tar.gz
iced-26569069038d60c05e935c45d34cc5c8099c798f.tar.bz2
iced-26569069038d60c05e935c45d34cc5c8099c798f.zip
Rename `PlateformSpecific` variant in `Action` to `Custom`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/command/action.rs8
1 files changed, 4 insertions, 4 deletions
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<T> {
tagger: Box<dyn Fn(Result<(), font::Error>) -> T>,
},
- /// Pass PlatformSpecific action, for some special platform
- PlatformSpecific(Box<dyn Any>)
+ /// A custom action supported by a specific runtime.
+ Custom(Box<dyn Any>),
}
impl<T> Action<T> {
@@ -76,7 +76,7 @@ impl<T> Action<T> {
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<T> fmt::Debug for Action<T> {
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"),
}
}
}