Skip to content

Commit a264ce8

Browse files
committed
flatten
1 parent a562f7c commit a264ce8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/inspector.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,12 @@ impl task::ArcWake for InspectorWaker {
678678
if let Some(waker) = w.task_waker.take() {
679679
waker.wake()
680680
}
681+
// TODO(bartlomieju): this comment has a lot of wisdom related to `poll_sessions`
682+
// interaction - figure it out
681683
// Request an interrupt from the isolate if it's running and there's
682684
// not unhandled interrupt request in flight.
683-
if let Some(arg) =
684-
w.state_ptr.take().map(|ptr| ptr.as_ptr() as *mut c_void)
685-
{
685+
if let Some(state_ptr) = w.state_ptr.take() {
686+
let arg = state_ptr.as_ptr() as *mut c_void;
686687
w.isolate_handle.request_interrupt(handle_interrupt, arg);
687688
}
688689
}

0 commit comments

Comments
 (0)