Style change

This commit is contained in:
Kenny Levinsen
2020-03-30 03:29:41 +02:00
parent 646dd29ed5
commit 3d24916319

View File

@@ -216,9 +216,7 @@ impl Session {
msg.send(&mut self.sock).await?; msg.send(&mut self.sock).await?;
let sub_task = loop { let sub_task = loop {
let msg = SessionChildToParent::recv(&mut self.sock).await?; match SessionChildToParent::recv(&mut self.sock).await? {
match msg {
SessionChildToParent::Error(e) => return Err(e), SessionChildToParent::Error(e) => return Err(e),
SessionChildToParent::FinalChildPid(raw_pid) => break Pid::from_raw(raw_pid as i32), SessionChildToParent::FinalChildPid(raw_pid) => break Pid::from_raw(raw_pid as i32),
SessionChildToParent::PamMessage { style, msg } => { SessionChildToParent::PamMessage { style, msg } => {