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.
This commit is contained in:
dotCooCoo committed 2026-12-02 00:32:34 -08:00
1 parent f411ad0879
commit 7e3feff631
1 file changed
+1 -1
+1 -1
View File
@@ -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!(