This commit is contained in:
Antonio Scandurra
2023-04-17 18:52:48 +02:00
parent 38ab6b123f
commit 493a418c91
5 changed files with 19 additions and 6 deletions
+2
View File
@@ -404,6 +404,8 @@ impl ReadModelWith for TestAppContext {
}
impl UpdateView for TestAppContext {
type Output<S> = S;
fn update_view<T, S>(
&mut self,
handle: &ViewHandle<T>,
+3 -1
View File
@@ -155,6 +155,8 @@ impl ReadView for WindowContext<'_, '_> {
}
impl UpdateView for WindowContext<'_, '_> {
type Output<S> = S;
fn update_view<T, S>(
&mut self,
handle: &ViewHandle<T>,
@@ -172,7 +174,7 @@ impl UpdateView for WindowContext<'_, '_> {
&mut cx,
)
})
.unwrap() // TODO: Is this unwrap safe?
.unwrap()
}
}