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