cargo fmt

This commit is contained in:
Kyle Sutherland-Cash 2021-05-08 10:55:13 -07:00
parent 4fb4faa28d
commit ce92374f8e
2 changed files with 4 additions and 5 deletions

View File

@ -3,9 +3,9 @@ use async_std::task;
use async_std::task::*;
use std::collections::HashMap;
use std::os::unix::io::RawFd;
use std::path::PathBuf;
use std::pin::*;
use std::time::{Duration, Instant};
use std::path::PathBuf;
use crate::client::panes::PaneId;
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;
}
}
senders
.send_to_screen(ScreenInstruction::Render)
.unwrap();
senders.send_to_screen(ScreenInstruction::Render).unwrap();
#[cfg(not(test))]
// 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

View File

@ -69,7 +69,8 @@ pub fn start_server(os_input: Box<dyn ServerOsApi>) -> thread::JoinHandle<()> {
let to_server = to_server.clone();
move || route_thread_main(sessions, os_input, to_server)
}).unwrap();
})
.unwrap();
#[cfg(not(test))]
let _ = thread::Builder::new()
.name("server_listener".to_string())