some minor improvements

This commit is contained in:
Robin Müller 2022-06-09 17:02:23 +02:00
parent 472c8349ac
commit 30bf2ca667
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -25,16 +25,10 @@ fn basic_event_test() {
let mut event_cntr = 0; let mut event_cntr = 0;
while event_cntr < 2 { while event_cntr < 2 {
match event_receiver.recv() { if let Ok(event) = event_receiver.recv() {
Ok(event) => {
println!("Received event {:?}", event); println!("Received event {:?}", event);
event_cntr += 1; event_cntr += 1;
} }
Err(_) => {
()
// println!("Received error {:?}", error);
}
}
} }
t0.join().unwrap(); t0.join().unwrap();
t1.join().unwrap(); t1.join().unwrap();