refactor: reduced some clones#15413
Conversation
Package Changes Through b292729There are 2 changes which include tauri-bundler with patch, tauri-runtime-wry with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
I think this is the right direction to go in more in general. Lifetimes seem like a nuisance but help discover hierarchically well structured designs that are much less likely to lead to deadlocks and memory leaks. I have similar changes I think we should make heading towards v3. |
|
Yeah, that's what I thought as well, these changes were made so I could see where are these things used and the flow more clearly |
|
From pub struct WindowsStore(pub RefCell<BTreeMap<WindowId, WindowWrapper>>)Now we cannot move ownership cross-thread, forcing processing in single thread stack. |
Yeah, that's the whole point, they should not be crossing to another thread |
To be precise, this PR still allows multithreaded access. #14805 will remove it, so |
|
Thanks for brings more context, now I see it. |
No description provided.