make GlobalMemo and GlobalSignal not copy or clone

This commit is contained in:
Evan Almloff committed 2024-01-23 18:37:50 -06:00
1 parent 9633cfadde
commit fc6912d4c0
2 files changed
+26 -32

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ impl Effect {
///
/// The signal will be owned by the current component and will be dropped when the component is dropped.
pub fn new(callback: impl FnMut() + 'static) -> Self {
let mut myself = Self {
let myself = Self {
source: current_scope_id().expect("in a virtual dom"),
inner: EffectInner::new(Box::new(callback)),
};