Comment Comment by idiomaticrust He is right. Such rewrites cause a lot of problems if your compiler doesn't help you with avoiding data races.But there is another way. parent idiomaticrust 3 years ago
But there is another way.