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
pub(crate)fnregister_info<T:Bundle>(&mutself,components:&mutComponents,storages:&mutStorages,) -> BundleId{let bundle_infos = &mutself.bundle_infos;let id = *self.bundle_ids.entry(TypeId::of::<T>()).or_insert_with(|| {letmut component_ids= Vec::new();T::component_ids(components, storages,&mut |id| component_ids.push(id));let id = BundleId(bundle_infos.len());let bundle_info =
// SAFETY: T::component_id ensures:// - its info was created// - appropriate storage for it has been initialized.// - it was created in the same order as the components in Tunsafe{BundleInfo::new(core::any::type_name::<T>(), components, component_ids, id)};
bundle_infos.push(bundle_info);
id
});
id
}
The focus:
letmut component_ids= Vec::new();
Expected:
letmut component_ids = Vec::new();
The text was updated successfully, but these errors were encountered:
This line unsafe { BundleInfo::new(core::any::type_name::<T>(), components, component_ids, id) }; is 103 characters long, which exceeds the default max_width of 100. Because this is inside the .or_insert_with() call this is a duplicate of #3863. You can bump the max_width and rustfmt will be able to format this chained method call.
"formatted" code:
The focus:
Expected:
The text was updated successfully, but these errors were encountered: