some minor improvements
This commit is contained in:
parent
472c8349ac
commit
30bf2ca667
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user