aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tmux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tmux.rs')
-rw-r--r--examples/tmux.rs16
1 files changed, 3 insertions, 13 deletions
diff --git a/examples/tmux.rs b/examples/tmux.rs
index 0ceb40b..62e52c2 100644
--- a/examples/tmux.rs
+++ b/examples/tmux.rs
@@ -293,32 +293,22 @@ impl State {
#[must_use]
struct Tmux {
input: textmode::Input,
- _raw: textmode::RawGuard,
tm: textmode::Output,
- _screen: textmode::ScreenGuard,
state: State,
}
impl Tmux {
async fn new() -> Self {
- let (input, _raw) = textmode::Input::new().await.unwrap();
- let (tm, _screen) = textmode::Output::new().await.unwrap();
+ let input = textmode::Input::new().await.unwrap();
+ let tm = textmode::Output::new().await.unwrap();
let state = State::new();
- Self {
- input,
- _raw,
- tm,
- _screen,
- state,
- }
+ Self { input, tm, state }
}
async fn run(self, ex: &smol::Executor<'_>) {
let Self {
input,
- _raw,
mut tm,
- _screen,
mut state,
} = self;