remove some old manual implementations of helpers

This commit is contained in:
Evan Almloff committed 2024-01-23 11:29:13 -06:00
1 parent 7f93263357
commit 94c0c2e5b9
3 files changed
+44 -33

No files matched your search

+2
View File
@@ -228,6 +228,7 @@ impl<T: 'static> Signal<T> {
}
/// Creates a new global Signal that can be used in a global static.
#[track_caller]
pub const fn global(constructor: fn() -> T) -> GlobalSignal<T> {
GlobalSignal::new(constructor)
}
@@ -235,6 +236,7 @@ impl<T: 'static> Signal<T> {
impl<T: PartialEq + 'static> Signal<T> {
/// Creates a new global Signal that can be used in a global static.
#[track_caller]
pub const fn global_memo(constructor: fn() -> T) -> GlobalMemo<T>
where
T: PartialEq,