default the storage to UnSyncStorage in ReadSignal type (#3879)
This commit is contained in:
1 parent
5f01d79907
commit
c58d7303b8
1 file changed
+1
-1
@@ -12,7 +12,7 @@ pub struct ReadOnlySignal<T: 'static, S: Storage<SignalData<T>> = UnsyncStorage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A signal that can only be read from.
|
/// A signal that can only be read from.
|
||||||
pub type ReadSignal<T, S> = ReadOnlySignal<T, S>;
|
pub type ReadSignal<T, S = UnsyncStorage> = ReadOnlySignal<T, S>;
|
||||||
|
|
||||||
impl<T: 'static, S: Storage<SignalData<T>>> From<Signal<T, S>> for ReadOnlySignal<T, S> {
|
impl<T: 'static, S: Storage<SignalData<T>>> From<Signal<T, S>> for ReadOnlySignal<T, S> {
|
||||||
fn from(inner: Signal<T, S>) -> Self {
|
fn from(inner: Signal<T, S>) -> Self {
|
||||||
|
|||||||
Reference in new issue
Block a user