LazyLoadable now uses Loadable<&T, E> for it's SignalWith impl.

This commit is contained in:
Filipe Rodrigues 2024-03-04 20:52:37 +00:00
parent c85e9677ef
commit 3b3118caa0
Signed by: zenithsiz
SSH Key Fingerprint: SHA256:Mb5ppb3Sh7IarBO/sBTXLHbYEOz37hJAlslLQPPAPaU

View File

@ -155,14 +155,14 @@ where
T: 'static,
E: Clone + 'static,
{
type Value<'a> = &'a Loadable<T, E>;
type Value<'a> = Loadable<&'a T, E>;
fn with<F, O>(&self, f: F) -> O
where
F: for<'a> FnOnce(Self::Value<'a>) -> O,
{
self.load();
self.inner.with(f)
self.inner.with(|loadable| f(loadable.as_ref()))
}
}