Skip to content

Commit 61651d4

Browse files
committed
format
1 parent 9d694ac commit 61651d4

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/bin/main.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ fn main() {
1919
exit(1);
2020
});
2121

22-
let childs = vec![
23-
spawn(|| TcpRelay::new().and_then(|r| r.run())
24-
.unwrap_or_else(|e| error!("{:?}", e))),
25-
spawn(|| UdpRelay::new().and_then(|r| r.run())
26-
.unwrap_or_else(|e| error!("{:?}", e))),
27-
];
22+
let childs = vec![spawn(|| {
23+
TcpRelay::new()
24+
.and_then(|r| r.run())
25+
.unwrap_or_else(|e| error!("{:?}", e))
26+
}),
27+
spawn(|| {
28+
UdpRelay::new()
29+
.and_then(|r| r.run())
30+
.unwrap_or_else(|e| error!("{:?}", e))
31+
})];
2832

2933
for child in childs {
3034
let _ = child.join();

0 commit comments

Comments
 (0)