Skip to content

Conversation

@Troels51
Copy link
Contributor

@Troels51 Troels51 commented Nov 8, 2024

When someone wins we were calling get_selected and then setting is_winner on the value we get. The problem is that get_selected cloned the value making the mutation invalid.
Now get_selected returns an Option<&mut T>, which requires a couple of changes.

When someone wins we were calling get_selected and then setting
is_winner on the value we get. The problem is that get_selected cloned
the value making the mutation invalid.
Now get_selected returns an Option<&mut T>, which requires a couple of
changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant