diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs
index 289a22259c6..6cb0210c22a 100644
--- a/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs
+++ b/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs
@@ -106,7 +106,7 @@ pub fn spawn(
         ));
 
         let worker_js_path = tmpdir.join("worker.js");
-        fs::write(&worker_js_path, worker_script).context("failed to write JS file")?;
+        fs::write(worker_js_path, worker_script).context("failed to write JS file")?;
 
         js_to_execute.push_str(&format!(
             r#"