Fixed code styling.

This commit is contained in:
didier amyot committed 2023-02-11 10:27:24 -05:00
1 parent 7b716c1115
commit c8ae3d3ff9
11 files changed
+85 -96

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use std::{io};
pub async fn worker_loop(r: async_channel::Receiver<i32>) -> io::Result<()> {
loop {
let x = r.recv().await;
match x {
Ok(v) => println!("Processed value: {:?}", v),
Err(e) => {
println!("Error: {:?}", e);
return Ok(());
}
}
}
}