##// END OF EJS Templates
rust-chg: indent process_message() to prepare mass rewrite to futures-0.3...
Yuya Nishihara -
r45185:f8780482 default
parent child Browse files
Show More
@@ -140,6 +140,7 where
140 140 C: Connection,
141 141 H: SystemHandler,
142 142 {
143 {
143 144 match msg {
144 145 ChannelMessage::Data(b'r', data) => {
145 146 let code = message::parse_result_code(data)?;
@@ -150,10 +151,9 where
150 151 let msg_loop = MessageLoop::resume(client);
151 152 Ok(AsyncS::PollAgain(CommandState::Running(msg_loop, handler)))
152 153 }
153 ChannelMessage::InputRequest(..) | ChannelMessage::LineRequest(..) => Err(io::Error::new(
154 io::ErrorKind::InvalidData,
155 "unsupported request",
156 )),
154 ChannelMessage::InputRequest(..) | ChannelMessage::LineRequest(..) => Err(
155 io::Error::new(io::ErrorKind::InvalidData, "unsupported request"),
156 ),
157 157 ChannelMessage::SystemRequest(data) => {
158 158 let (cmd_type, cmd_spec) = message::parse_command_spec(data)?;
159 159 match cmd_type {
@@ -169,3 +169,4 where
169 169 }
170 170 }
171 171 }
172 }
General Comments 0
You need to be logged in to leave comments. Login now