diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-04-12 16:00:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 16:00:05 +0200 |
| commit | 313ac9f41474222133b344c1c0d8827b4dc2fa50 (patch) | |
| tree | e1f783ea407fcb0d722d3a463046eab145211a57 /src/common/errors.rs | |
| parent | fix(compatibility): reset (#261) (diff) | |
| download | sl0ppij-313ac9f41474222133b344c1c0d8827b4dc2fa50.tar.gz sl0ppij-313ac9f41474222133b344c1c0d8827b4dc2fa50.tar.xz sl0ppij-313ac9f41474222133b344c1c0d8827b4dc2fa50.zip | |
fix(performance): remove unnecessary allocations from pty (#264)
* work
* refactor(pty): removed unused code
* style(comment): remove unused
* style(fmt): rustfmt
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index 1548aec0..9801428c 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -168,7 +168,7 @@ impl Display for ContextType { /// Stack call representations corresponding to the different types of [`ScreenInstruction`]s. #[derive(Debug, Clone, Copy, PartialEq)] pub enum ScreenContext { - HandlePtyEvent, + HandlePtyBytes, Render, NewPane, HorizontalSplit, @@ -210,7 +210,7 @@ pub enum ScreenContext { impl From<&ScreenInstruction> for ScreenContext { fn from(screen_instruction: &ScreenInstruction) -> Self { match *screen_instruction { - ScreenInstruction::Pty(..) => ScreenContext::HandlePtyEvent, + ScreenInstruction::PtyBytes(..) => ScreenContext::HandlePtyBytes, ScreenInstruction::Render => ScreenContext::Render, ScreenInstruction::NewPane(_) => ScreenContext::NewPane, ScreenInstruction::HorizontalSplit(_) => ScreenContext::HorizontalSplit, |
