aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/errors.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-09-30 10:25:48 +0200
committerGitHub <noreply@github.com>2021-09-30 10:25:48 +0200
commitd7e4ec65db028f1ea231d4bee689be394f95cbf5 (patch)
treeaa99bde6c270512dd2c462908095753f6a85876c /zellij-utils/src/errors.rs
parentfix(makefile): update `update-default-config` (#751) (diff)
downloadsl0ppij-d7e4ec65db028f1ea231d4bee689be394f95cbf5.tar.gz
sl0ppij-d7e4ec65db028f1ea231d4bee689be394f95cbf5.tar.xz
sl0ppij-d7e4ec65db028f1ea231d4bee689be394f95cbf5.zip
hotfix(stdin): poll for mouse hold in the stdin thread (#752)
* hotfix(stdin): poll for mouse hold in the stdin thread * add missing dont panic * style(fmt): make rustfmt happy
Diffstat (limited to 'zellij-utils/src/errors.rs')
-rw-r--r--zellij-utils/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-utils/src/errors.rs b/zellij-utils/src/errors.rs
index dc9a9789..cb4a4c26 100644
--- a/zellij-utils/src/errors.rs
+++ b/zellij-utils/src/errors.rs
@@ -104,7 +104,7 @@ pub fn get_current_ctx() -> ErrorContext {
}
/// A representation of the call stack.
-#[derive(Clone, Copy, Serialize, Deserialize)]
+#[derive(Clone, Copy, Serialize, Deserialize, Debug)]
pub struct ErrorContext {
calls: [ContextType; MAX_THREAD_CALL_STACK],
}
@@ -161,7 +161,7 @@ impl Display for ErrorContext {
/// Complex variants store a variant of a related enum, whose variants can be built from
/// the corresponding Zellij MSPC instruction enum variants ([`ScreenInstruction`],
/// [`PtyInstruction`], [`ClientInstruction`], etc).
-#[derive(Copy, Clone, PartialEq, Serialize, Deserialize)]
+#[derive(Copy, Clone, PartialEq, Serialize, Deserialize, Debug)]
pub enum ContextType {
/// A screen-related call.
Screen(ScreenContext),