don't require a valid type for CopyValue::set

This commit is contained in:
Evan Almloff 2024-01-24 14:23:23 -06:00
parent 55b37cc381
commit 10e305d2da

View file

@ -195,6 +195,10 @@ impl<T: 'static, S: Storage<T>> Writable<T> for CopyValue<T, S> {
fn write(&self) -> Self::Mut<T> {
self.value.write()
}
fn set(&mut self, value: T) {
self.value.set(value);
}
}
impl<T: 'static, S: Storage<T>> PartialEq for CopyValue<T, S> {