diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-09 21:51:17 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-09 21:51:17 +0000 |
| commit | e9ab81850e61b9b5e9c1f25d79cafd8378bda600 (patch) | |
| tree | 0e73c8c2ea64594d84da2d7cdb086734a20634b5 /src/common/errors.rs | |
| parent | Deduplicate the WASM interface structs (diff) | |
| download | sl0ppij-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.rs | 2 |
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 { |
