style: 自动格式化

This commit is contained in:
2026-06-30 20:04:27 +08:00
parent c58aae4862
commit dcc3b610e9
4 changed files with 16 additions and 5 deletions
@@ -149,7 +149,10 @@ impl Compiler {
}
// Check if target is a captured cell
if ctx.scopes.symbols.lookup_is_captured(name) {
let cell_idx = ctx.scopes.cell_registry.iter()
let cell_idx = ctx
.scopes
.cell_registry
.iter()
.find(|(n, _)| n == name)
.map(|(_, idx)| *idx)
.unwrap_or(0);
@@ -70,7 +70,10 @@ impl Compiler {
// Check if the owner's binding is captured (cell access)
if ctx.scopes.symbols.lookup_is_captured(name) {
let cell_idx = ctx.scopes.cell_registry.iter()
let cell_idx = ctx
.scopes
.cell_registry
.iter()
.find(|(n, _)| n == name)
.map(|(_, idx)| *idx)
.unwrap_or(0);