diff options
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 5db11d9c5..15bb103ba 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -1950,7 +1950,7 @@ pub mod tests { #[test] fn test_pre_dispatch() { - run_in_task(|mut cx| { + run_in_task(|cx| { let (mut runtime, _dispatch_count) = setup(Mode::Async); runtime .execute_script( @@ -1966,7 +1966,7 @@ pub mod tests { "#, ) .unwrap(); - if let Poll::Ready(Err(_)) = runtime.poll_event_loop(&mut cx, false) { + if let Poll::Ready(Err(_)) = runtime.poll_event_loop(cx, false) { unreachable!(); } }); @@ -1984,7 +1984,7 @@ pub mod tests { #[test] fn test_encode_decode() { - run_in_task(|mut cx| { + run_in_task(|cx| { let (mut runtime, _dispatch_count) = setup(Mode::Async); runtime .execute_script( @@ -1992,7 +1992,7 @@ pub mod tests { include_str!("encode_decode_test.js"), ) .unwrap(); - if let Poll::Ready(Err(_)) = runtime.poll_event_loop(&mut cx, false) { + if let Poll::Ready(Err(_)) = runtime.poll_event_loop(cx, false) { unreachable!(); } }); @@ -2000,7 +2000,7 @@ pub mod tests { #[test] fn test_serialize_deserialize() { - run_in_task(|mut cx| { + run_in_task(|cx| { let (mut runtime, _dispatch_count) = setup(Mode::Async); runtime .execute_script( @@ -2008,7 +2008,7 @@ pub mod tests { include_str!("serialize_deserialize_test.js"), ) .unwrap(); - if let Poll::Ready(Err(_)) = runtime.poll_event_loop(&mut cx, false) { + if let Poll::Ready(Err(_)) = runtime.poll_event_loop(cx, false) { unreachable!(); } }); @@ -2024,7 +2024,7 @@ pub mod tests { "DOMExceptionOperationError" } - run_in_task(|mut cx| { + run_in_task(|cx| { let mut runtime = JsRuntime::new(RuntimeOptions { get_error_class_fn: Some(&get_error_class_name), ..Default::default() @@ -2037,7 +2037,7 @@ pub mod tests { include_str!("error_builder_test.js"), ) .unwrap(); - if let Poll::Ready(Err(_)) = runtime.poll_event_loop(&mut cx, false) { + if let Poll::Ready(Err(_)) = runtime.poll_event_loop(cx, false) { unreachable!(); } }); |