candy icon indicating copy to clipboard operation
candy copied to clipboard

Consider using the take_mut crate to remove Option<State>

Open MarcelGarus opened this issue 2 years ago • 0 comments

In several places, we use something like this:

Option<State> // only None during state transitions

Apparently, the take_mut package allows temporarily taking ownership from a &mut.

MarcelGarus avatar Aug 10 '23 10:08 MarcelGarus