chore: make cargo check happy with new apis

This commit is contained in:
Jonathan Kelley committed 2022-12-07 14:51:14 -08:00
1 parent a252774226
commit db5b65b6cb
7 files changed
+8 -101

No files matched your search

+2 -2
View File
@@ -77,12 +77,12 @@ mod tests {
});
// runs when a is changed
use_effect(cx, (cx.props.a,), |(a,)| async move {
use_effect(cx, (&cx.props.a,), |(a,)| async move {
//
});
// runs when a or b is changed
use_effect(cx, (cx.props.a, &cx.props.b), |(a, b)| async move {
use_effect(cx, (&cx.props.a, &cx.props.b), |(a, b)| async move {
//
});
+2 -2
View File
@@ -319,10 +319,10 @@ mod tests {
let fut = use_future(cx, (), |_| async move {});
// runs when a is changed
let fut = use_future(cx, (cx.props.a,), |(a,)| async move {});
let fut = use_future(cx, (&cx.props.a,), |(a,)| async move {});
// runs when a or b is changed
let fut = use_future(cx, (cx.props.a, &cx.props.b), |(a, b)| async move { 123 });
let fut = use_future(cx, (&cx.props.a, &cx.props.b), |(a, b)| async move { 123 });
let a = use_future!(cx, || async move {
// do the thing!