feat: provide deprecated create_node_ref (#2777)

This commit is contained in:
Corvus 2024-08-05 18:33:58 -06:00 committed by GitHub
parent 1f4c410f78
commit f174688974
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,3 +103,16 @@ where
self.0.track();
}
}
/// Create a [NodeRef].
#[inline(always)]
#[track_caller]
#[deprecated = "This function is being removed to conform to Rust idioms. \
Please use `NodeRef::new()` instead."]
pub fn create_node_ref<E>() -> NodeRef<E>
where
E: ElementType,
E::Output: 'static,
{
NodeRef::new()
}