--- a/rust/chg/src/runcommand.rs Wed Sep 30 18:07:21 2020 +0530
+++ b/rust/chg/src/runcommand.rs Thu Oct 01 09:09:35 2020 -0700
@@ -36,7 +36,8 @@
ChannelMessage::Data(..) => {
// just ignores data sent to optional channel
}
- ChannelMessage::InputRequest(..) | ChannelMessage::LineRequest(..) => {
+ ChannelMessage::InputRequest(..)
+ | ChannelMessage::LineRequest(..) => {
return Err(io::Error::new(
io::ErrorKind::InvalidData,
"unsupported request",
@@ -49,7 +50,8 @@
// server spins new command loop while pager request is
// in progress, which can be terminated by "" command.
let pin = handler.spawn_pager(&cmd_spec).await?;
- attachio::attach_io(proto, &io::stdin(), &pin, &pin).await?;
+ attachio::attach_io(proto, &io::stdin(), &pin, &pin)
+ .await?;
proto.send_command("").await?; // terminator
}
CommandType::System => {