fix: 修复 clippy 阻塞(doc comment 空行 + single_match_else)

This commit is contained in:
2026-08-06 00:45:49 +08:00
parent acd8e54e59
commit af93f6702d
2 changed files with 47 additions and 52 deletions
+1 -4
View File
@@ -14,8 +14,7 @@ impl Emitter {
ctx: &mut CompileCtx,
) -> Result<(), String> {
for element in elements {
match element {
ClassElement::MethodDefinition(method) => {
if let ClassElement::MethodDefinition(method) = element {
let method = method.as_ref();
if method.kind == MethodDefinitionKind::Constructor {
continue;
@@ -64,8 +63,6 @@ impl Emitter {
MethodDefinitionKind::Constructor => continue,
}
}
_ => {}
}
}
Ok(())
}
-2
View File
@@ -542,8 +542,6 @@ impl Emitter {
// ── 闭包捕获分析(AST 级,时序无关)──
/// 收集函数参数的绑定名(BindingIdentifier 形态)。
pub(crate) fn extract_function_parts<'a>(
&self, function: &'a oxide_parser::Function<'a>,
) -> Result<(Vec<ParamSpec<'a>>, &'a [Statement<'a>]), String> {