Add migration guide

This commit is contained in:
Giacomo Stevanato 2025-07-18 11:39:08 +02:00
parent 3528800d2e
commit c7d5ec6c28
No known key found for this signature in database

View File

@ -0,0 +1,6 @@
---
title: ComponentsRegistrator no longer implements DerefMut
pull_requests: [14791, 15458, 15269]
---
`ComponentsRegistrator` no longer implements `DerefMut<Target = Components>`, meaning you won't be able to get a `&mut Components` from it. The only two methods on `Components` that took `&mut self` (`any_queued_mut` and `num_queued_mut`) have been reimplemented on `ComponentsRegistrator`, meaning you won't need to migrate them. Other usages of `&mut Components` were unsupported.