fix: 修复测试的 clippy lint 警告

This commit is contained in:
爱特每羊队
2026-06-05 21:31:11 +08:00
parent cc54720a05
commit afae957e44
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -356,7 +356,7 @@ impl Vm {
let new_shape_id = shape::make_shape(obj.shape_id(), prop_name_si);
obj.set_shape_id(new_shape_id);
obj.set_prop_count(new_offset + 1);
obj.set_prop_expand(new_offset, self.regs[a], &self.epoch.bump());
obj.set_prop_expand(new_offset, self.regs[a], self.epoch.bump());
obj.bump_generation();
}
}
@@ -395,7 +395,7 @@ impl Vm {
let new_shape_id = shape::make_shape(obj.shape_id(), prop_name_si);
obj.set_shape_id(new_shape_id);
obj.set_prop_count(new_offset + 1);
obj.set_prop_expand(new_offset, self.regs[b], &self.epoch.bump());
obj.set_prop_expand(new_offset, self.regs[b], self.epoch.bump());
obj.bump_generation();
}
}