When I tried to modify my handles() method to be able to modify the global variable I had to pass in the new argument - the borrow of the global variable. However, this triggered some weird "variable can be outlived by the borrow" error and this is how it was explained.
Not sure if the 'move' is a good fix as I am doing it for the first time.
When I tried to modify my handles() method to be able to modify the global variable I had to pass in the new argument - the borrow of the global variable. However, this triggered some weird "variable can be outlived by the borrow" error and this is how it was explained.
Not sure if the 'move' is a good fix as I am doing it for the first time.