aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Pailes <ethan@pailes.org>2023-11-04 03:38:20 -0400
committerGitHub <noreply@github.com>2023-11-04 07:38:20 +0000
commit1e66833034d11c2867ccf0a92e75e29dbb64abc8 (patch)
tree30adc10e6c1d8ffecb815a1ffa7ff73b19d61b55
parent7915b0952254f08b72492e117282d0327c979356 (diff)
downloadr-alacritty-vte-1e66833034d11c2867ccf0a92e75e29dbb64abc8.tar.gz
r-alacritty-vte-1e66833034d11c2867ccf0a92e75e29dbb64abc8.tar.bz2
r-alacritty-vte-1e66833034d11c2867ccf0a92e75e29dbb64abc8.zip
Ensure proper enum representation
-rw-r--r--src/definitions.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/definitions.rs b/src/definitions.rs
index a1f264d..218c1eb 100644
--- a/src/definitions.rs
+++ b/src/definitions.rs
@@ -1,6 +1,7 @@
use core::mem;
#[allow(dead_code)]
+#[repr(u8)]
#[derive(Debug, Default, Copy, Clone)]
pub enum State {
Anywhere = 0,
@@ -23,6 +24,7 @@ pub enum State {
}
#[allow(dead_code)]
+#[repr(u8)]
#[derive(Debug, Clone, Copy)]
pub enum Action {
None = 0,