The difference is the order in which things happens: The unwrap doesn't happen when the val_mut call happens. I believe you may be interested in this similar thread.
2 Likes
The difference is the order in which things happens: The unwrap doesn't happen when the val_mut call happens. I believe you may be interested in this similar thread.