Cannot borrow captured outer variable in an `Fn` closure as mutable
This is a very good example of how Rust protects you from thread unsafety. If you think about it, in your current code it would be possible that multiple threads try to concurrently mutate reservations without any kind of synchronization. This is a data race and Rust will complain about it. A possible solution would … Read more