(&mut self)
| 37 | /// Gets a `&mut T` if it already exists or initializes one with [`Default`]. |
| 38 | #[cfg(test)] |
| 39 | pub(crate) fn get<T: Default + Send + Sync + 'static>(&mut self) -> &mut T { |
| 40 | // Safety: T is static. |
| 41 | unsafe { self.get_non_static::<T>() } |
| 42 | } |
| 43 | |
| 44 | /// Like [`Registry::get`] but can get non-static types. |
| 45 | /// # Safety |