chore: 全仓 rustfmt 格式化归拢

This commit is contained in:
2026-08-16 12:50:36 +08:00
parent 4572ecffaa
commit 5df04a8e58
28 changed files with 166 additions and 247 deletions
+3 -6
View File
@@ -464,8 +464,8 @@ impl oxide_emit::module::ModuleSourceLoader for Test262ModuleLoader {
let canonical = full
.canonicalize()
.map_err(|e| format!("cannot resolve module {specifier}: {e}"))?;
let content = std::fs::read_to_string(&canonical)
.map_err(|e| format!("cannot read module {specifier}: {e}"))?;
let content =
std::fs::read_to_string(&canonical).map_err(|e| format!("cannot read module {specifier}: {e}"))?;
Ok(ResolvedModule {
source: content,
path: canonical.to_string_lossy().to_string(),
@@ -607,10 +607,7 @@ fn judge_async_result(
return TestResult::fail(
path.to_path_buf(),
dur,
format!(
"expected runtime error ({}), got: async complete",
neg.error_type
),
format!("expected runtime error ({}), got: async complete", neg.error_type),
);
}
return TestResult::pass(path.to_path_buf(), dur, "async ok");