aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-09 01:48:21 -0700
committerKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-09 01:48:21 -0700
commit0a17323bc4a87efff51134ee9222aa16ce346a4b (patch)
tree6593ceea559c89726cd45a424b45794c6b58592c /src/common/errors.rs
parentRevert accidental rename of ToggleActiveSyncTab (diff)
downloadsl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.tar.gz
sl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.tar.xz
sl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.zip
Bit more module tidy up
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 2a3c665b..311e8d8e 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -1,14 +1,16 @@
//! Error context system based on a thread-local representation of the call stack, itself based on
//! the instructions that are sent between threads.
-use super::{thread_bus::ASYNCOPENCALLS, thread_bus::OPENCALLS, ServerInstruction};
-use crate::client::ClientInstruction;
-use crate::pty::PtyInstruction;
-use crate::screen::ScreenInstruction;
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Error, Formatter};
+use crate::server::ServerInstruction;
+use crate::common::thread_bus::{ASYNCOPENCALLS, OPENCALLS};
+use crate::client::ClientInstruction;
+use crate::pty::PtyInstruction;
+use crate::screen::ScreenInstruction;
+
/// The maximum amount of calls an [`ErrorContext`] will keep track
/// of in its stack representation. This is a per-thread maximum.
const MAX_THREAD_CALL_STACK: usize = 6;