aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-09 21:51:17 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-09 21:51:17 +0000
commite9ab81850e61b9b5e9c1f25d79cafd8378bda600 (patch)
tree0e73c8c2ea64594d84da2d7cdb086734a20634b5 /src/common/errors.rs
parentDeduplicate the WASM interface structs (diff)
downloadsl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.tar.gz
sl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.tar.xz
sl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.zip
Add event subscription tracking
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index df741629..48a92b76 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -164,6 +164,7 @@ impl Display for ContextType {
}
}
+// FIXME: Just deriving EnumDiscriminants from strum will remove the need for any of this!!!
/// Stack call representations corresponding to the different types of [`ScreenInstruction`]s.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum ScreenContext {
@@ -201,6 +202,7 @@ pub enum ScreenContext {
UpdateTabName,
}
+// FIXME: Just deriving EnumDiscriminants from strum will remove the need for any of this!!!
impl From<&ScreenInstruction> for ScreenContext {
fn from(screen_instruction: &ScreenInstruction) -> Self {
match *screen_instruction {