mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
chore: 清理 oxide_test262 clippy 告警
This commit is contained in:
@@ -535,7 +535,7 @@ fn run_test_inner(
|
|||||||
let compiler = if no_regalloc { Compiler::new().with_regalloc(false) } else { Compiler::new() };
|
let compiler = if no_regalloc { Compiler::new().with_regalloc(false) } else { Compiler::new() };
|
||||||
let module = match if is_module {
|
let module = match if is_module {
|
||||||
let mut loader = Test262ModuleLoader;
|
let mut loader = Test262ModuleLoader;
|
||||||
compiler.compile_module(&program, &path.to_string_lossy().to_string(), &mut loader)
|
compiler.compile_module(&program, path.to_string_lossy().as_ref(), &mut loader)
|
||||||
} else {
|
} else {
|
||||||
compiler.compile(&program)
|
compiler.compile(&program)
|
||||||
} {
|
} {
|
||||||
|
|||||||
Reference in New Issue
Block a user