summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-12-04 14:19:06 +0100
committerGitHub <noreply@github.com>2021-12-04 14:19:06 +0100
commitc59f90d01f06f995e335c6de76aab0b9ba2c98e5 (patch)
tree760bc0534fca502175749d9a7b719c0666f90543 /core/runtime.rs
parent72e9720e91630bdf28b1660c20c67baa39bdb586 (diff)
chore: upgrade to Rust 1.57.0 (#12968)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs16
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!();
}
});