don't require a valid type for CopyValue::set
This commit is contained in:
1 parent
55b37cc381
commit
10e305d2da
1 file changed
+4
@@ -195,6 +195,10 @@ impl<T: 'static, S: Storage<T>> Writable<T> for CopyValue<T, S> {
|
|||||||
fn write(&self) -> Self::Mut<T> {
|
fn write(&self) -> Self::Mut<T> {
|
||||||
self.value.write()
|
self.value.write()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn set(&mut self, value: T) {
|
||||||
|
self.value.set(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: 'static, S: Storage<T>> PartialEq for CopyValue<T, S> {
|
impl<T: 'static, S: Storage<T>> PartialEq for CopyValue<T, S> {
|
||||||
|
|||||||
Reference in new issue
Block a user