aboutsummaryrefslogtreecommitdiff
path: root/src/definitions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/definitions.rs')
-rw-r--r--src/definitions.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/definitions.rs b/src/definitions.rs
index fe7952d..a1f264d 100644
--- a/src/definitions.rs
+++ b/src/definitions.rs
@@ -1,7 +1,7 @@
use core::mem;
#[allow(dead_code)]
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Default, Copy, Clone)]
pub enum State {
Anywhere = 0,
CsiEntry = 1,
@@ -15,18 +15,13 @@ pub enum State {
DcsPassthrough = 9,
Escape = 10,
EscapeIntermediate = 11,
+ #[default]
Ground = 12,
OscString = 13,
SosPmApcString = 14,
Utf8 = 15,
}
-impl Default for State {
- fn default() -> State {
- State::Ground
- }
-}
-
#[allow(dead_code)]
#[derive(Debug, Clone, Copy)]
pub enum Action {