cargo fmt
This commit is contained in:
parent
4fb4faa28d
commit
ce92374f8e
2 changed files with 4 additions and 5 deletions
|
|
@ -3,9 +3,9 @@ use async_std::task;
|
||||||
use async_std::task::*;
|
use async_std::task::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::os::unix::io::RawFd;
|
use std::os::unix::io::RawFd;
|
||||||
|
use std::path::PathBuf;
|
||||||
use std::pin::*;
|
use std::pin::*;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use std::path::PathBuf;
|
|
||||||
|
|
||||||
use crate::client::panes::PaneId;
|
use crate::client::panes::PaneId;
|
||||||
use crate::common::errors::{get_current_ctx, ContextType, PtyContext};
|
use crate::common::errors::{get_current_ctx, ContextType, PtyContext};
|
||||||
|
|
@ -195,9 +195,7 @@ fn stream_terminal_bytes(
|
||||||
task::sleep(::std::time::Duration::from_millis(10)).await;
|
task::sleep(::std::time::Duration::from_millis(10)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
senders
|
senders.send_to_screen(ScreenInstruction::Render).unwrap();
|
||||||
.send_to_screen(ScreenInstruction::Render)
|
|
||||||
.unwrap();
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
// this is a little hacky, and is because the tests end the file as soon as
|
// this is a little hacky, and is because the tests end the file as soon as
|
||||||
// we read everything, rather than hanging until there is new data
|
// we read everything, rather than hanging until there is new data
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ pub fn start_server(os_input: Box<dyn ServerOsApi>) -> thread::JoinHandle<()> {
|
||||||
let to_server = to_server.clone();
|
let to_server = to_server.clone();
|
||||||
|
|
||||||
move || route_thread_main(sessions, os_input, to_server)
|
move || route_thread_main(sessions, os_input, to_server)
|
||||||
}).unwrap();
|
})
|
||||||
|
.unwrap();
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
let _ = thread::Builder::new()
|
let _ = thread::Builder::new()
|
||||||
.name("server_listener".to_string())
|
.name("server_listener".to_string())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue