diff options
Diffstat (limited to 'src/definitions.rs')
-rw-r--r-- | src/definitions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/definitions.rs b/src/definitions.rs index 568eb41..5d01623 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -50,7 +50,7 @@ pub enum Action { impl State { #[inline] - pub fn entry_action(&self) -> Action { + pub fn entry_action(self) -> Action { match self { State::CsiEntry | State::DcsEntry | State::Escape => Action::Clear, State::DcsPassthrough => Action::Hook, @@ -60,7 +60,7 @@ impl State { } #[inline] - pub fn exit_action(&self) -> Action { + pub fn exit_action(self) -> Action { match self { State::DcsPassthrough => Action::Unhook, State::OscString => Action::OscEnd, |