From 7e3feff63111a8ed93e9293b5a8bd09d6a0c7fa5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 2 Dec 2026 00:32:34 -0800 Subject: [PATCH] Tests: drop a String-to-String conversion in the sealed-global proxy test Clippy's useless_conversion lint stopped the gate at crates/js/src/proxy_tests.rs:127, where `names.clone().into()` converted a String to itself. The assertion compares the same value. --- crates/js/src/proxy_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/js/src/proxy_tests.rs b/crates/js/src/proxy_tests.rs index 01495b4fc5..cac32535b4 100644 --- a/crates/js/src/proxy_tests.rs +++ b/crates/js/src/proxy_tests.rs @@ -124,7 +124,7 @@ fn late_proxy_and_reflect_installation_respects_global_extensibility() { // ES2015 runs go on without the names the sealed global lacks. let names = format!("{} {}", if has_proxy { "number" } else { "undefined" }, if has_reflect { "number" } else { "undefined" }); for _ in 0..2 { - assert_eq!(realm.run("typeof Proxy + ' ' + typeof Reflect"), Ok(JsValue::String(names.clone().into())), "{operation}: {setup}"); + assert_eq!(realm.run("typeof Proxy + ' ' + typeof Reflect"), Ok(JsValue::String(names.clone())), "{operation}: {setup}"); } realm.set_es2015(false); let check = format!(