chore: make clippy happy
This commit is contained in:
1 parent
7c3d308ab5
commit
03aea885cf
12 files changed
+67
-103
No files matched your search
@@ -18,8 +18,11 @@ impl VirtualDom {
|
||||
let mut tasks = self.scheduler.tasks.borrow_mut();
|
||||
let task = &tasks[id.0];
|
||||
|
||||
let waker = task.waker();
|
||||
let mut cx = Context::from_waker(&waker);
|
||||
|
||||
// If the task completes...
|
||||
if task.progress() {
|
||||
if task.task.borrow_mut().as_mut().poll(&mut cx).is_ready() {
|
||||
// Remove it from the scope so we dont try to double drop it when the scope dropes
|
||||
self.scopes[task.scope.0].spawned_tasks.remove(&id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user