fix effects

This commit is contained in:
Evan Almloff committed 2023-11-06 18:54:35 -06:00
1 parent 466005890d
commit 7daa945ae3
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ impl<T: 'static, S: Storage<T>> CopyValue<T, S> {
/// Set the value. If the value has been dropped, this will panic.
pub fn set(&self, value: T) {
*self.write() = value;
self.value.set(value);
}
/// Run a function with a reference to the value. If the value has been dropped, this will panic.