Clean up clippy warnings

pull/39/head
Chip Senkbeil 3 years ago
parent 9bd2112344
commit ec4f635dbe
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -117,11 +117,6 @@ impl Process {
pub fn close_stdin(&mut self) {
self.stdin_tx.take();
}
pub async fn kill_and_wait(self) -> Result<(), JoinError> {
let _ = self.kill_tx.send(());
self.wait_task.await
}
}
impl Future for Process {

@ -60,13 +60,6 @@ impl CliSession {
Err(x) => Err(io::Error::new(io::ErrorKind::BrokenPipe, x)),
}
}
/// Aborts the cli session forcing its task handlers to abort underneath, which means that a
/// call to `wait` will return an error
pub async fn abort(&self) {
self.req_task.abort();
self.res_task.abort();
}
}
/// Helper function that loops, processing incoming responses not tied to a request to be sent out

Loading…
Cancel
Save