diff options
| author | Kyle Sutherland-Cash <kyle.sutherlandcash@gmail.com> | 2021-05-09 01:48:21 -0700 |
|---|---|---|
| committer | Kyle Sutherland-Cash <kyle.sutherlandcash@gmail.com> | 2021-05-09 01:48:21 -0700 |
| commit | 0a17323bc4a87efff51134ee9222aa16ce346a4b (patch) | |
| tree | 6593ceea559c89726cd45a424b45794c6b58592c /src | |
| parent | Revert accidental rename of ToggleActiveSyncTab (diff) | |
| download | sl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.tar.gz sl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.tar.xz sl0ppij-0a17323bc4a87efff51134ee9222aa16ce346a4b.zip | |
Bit more module tidy up
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/panes/plugin_pane.rs | 13 | ||||
| -rw-r--r-- | src/client/panes/terminal_pane.rs | 9 | ||||
| -rw-r--r-- | src/common/errors.rs | 10 |
3 files changed, 18 insertions, 14 deletions
diff --git a/src/client/panes/plugin_pane.rs b/src/client/panes/plugin_pane.rs index cd22e934..dde3cd9b 100644 --- a/src/client/panes/plugin_pane.rs +++ b/src/client/panes/plugin_pane.rs @@ -1,11 +1,12 @@ -use crate::{ - common::thread_bus::SenderWithContext, pty::VteBytes, tab::Pane, wasm_vm::PluginInstruction, -}; +use std::sync::mpsc::channel; +use std::time::Instant; +use std::unimplemented; +use crate::common::thread_bus::SenderWithContext; use crate::panes::{PaneId, PositionAndSize}; - -use std::time::Instant; -use std::{sync::mpsc::channel, unimplemented}; +use crate::pty::VteBytes; +use crate::tab::Pane; +use crate::wasm_vm::PluginInstruction; pub struct PluginPane { pub pid: u32, diff --git a/src/client/panes/terminal_pane.rs b/src/client/panes/terminal_pane.rs index e0ce8ffe..5792bba9 100644 --- a/src/client/panes/terminal_pane.rs +++ b/src/client/panes/terminal_pane.rs @@ -1,15 +1,16 @@ -use crate::tab::Pane; -use ::nix::pty::Winsize; -use ::std::os::unix::io::RawFd; -use serde::{Deserialize, Serialize}; use std::fmt::Debug; +use std::os::unix::io::RawFd; use std::time::Instant; +use nix::pty::Winsize; +use serde::{Deserialize, Serialize}; + use crate::panes::grid::Grid; use crate::panes::terminal_character::{ CharacterStyles, TerminalCharacter, EMPTY_TERMINAL_CHARACTER, }; use crate::pty::VteBytes; +use crate::tab::Pane; #[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Clone, Copy, Debug, Serialize, Deserialize)] pub enum PaneId { 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; |
