Oh, nice, we can remove an allocation on RSX nodes for the render process.

This commit is contained in:
Ryan McGrath 2019-05-25 03:14:48 -07:00
parent 4e822fa383
commit f1cb5fea93
No known key found for this signature in database
GPG key ID: 811674B62B666830
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ pub struct VirtualNode {
/// `Component` instances are created on-demand, if the reconciler deems it be so. This
/// is a closure that should return an instance of the correct type.
pub create_component_fn: Arc<fn() -> Arc<RwLock<Component>>>,
pub create_component_fn: fn() -> Arc<RwLock<Component>>,
/// A cached component instance, which is transferred between trees. Since `Component`
/// instances are lazily created, this is an `Option`, and defaults to `None`.