mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
don't require a valid type for CopyValue::set
This commit is contained in:
parent
55b37cc381
commit
10e305d2da
1 changed files with 4 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue