Supersedes: #41
(and here for github once again) Closes: #41
Fixes: #39
Blocked on: #42 (cause that fixes the compilation)
I specifically chose to add a new block there, so the new variable would be scoped to the bare minimum lifetime (been coding rust a lot recently).
Also I deliberately chose not to invoke event.getPlayer().getAddress() and address.getAddress() twice, just in case something changed between function calls when it shouldn't.
Supersedes: #41 (and here for github once again) Closes: #41 Fixes: #39
Blocked on: #42 (cause that fixes the compilation)
I specifically chose to add a new block there, so the new variable would be scoped to the bare minimum lifetime (been coding rust a lot recently). Also I deliberately chose not to invoke
event.getPlayer().getAddress()
andaddress.getAddress()
twice, just in case something changed between function calls when it shouldn't.