fix effects
This commit is contained in:
1 parent
466005890d
commit
7daa945ae3
2 files changed
+5
-3
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user