wip: remove hooks warnigns

This commit is contained in:
Jonathan Kelley committed 2022-01-03 02:20:11 -05:00
1 parent c1f8424693
commit d78815103d
3 files changed
+11 -14

No files matched your search

+4 -4
View File
@@ -20,9 +20,9 @@ pub fn use_suspense<R: 'static, F: Future<Output = R> + 'static>(
let task = cx.push_future(new_fut);
SuspenseInner {
task,
_task: task,
value: None,
wip_value,
_wip_value: wip_value,
}
});
@@ -35,7 +35,7 @@ pub fn use_suspense<R: 'static, F: Future<Output = R> + 'static>(
}
struct SuspenseInner<R> {
task: TaskId,
wip_value: Rc<Cell<Option<R>>>,
_task: TaskId,
_wip_value: Rc<Cell<Option<R>>>,
value: Option<R>,
}