You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I was looking at some code in winit and failed to understand this code. There is a cache using Mutex<Option<...>>. The code here tries to either copy the value contained in the cache or fill the cache.
The first part of my problem was that I somehow thought that .as_ref().cloned() does something to the inner contents and not the Option directly