chore: make cargo check happy with new apis
This commit is contained in:
1 parent
a252774226
commit
db5b65b6cb
7 files changed
+8
-101
No files matched your search
@@ -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 {
|
||||
//
|
||||
});
|
||||
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user