修复组件计数的布尔值转换
将布尔值显式转换为 usize,恢复 Rust 工作流模块编译。
This commit is contained in:
@@ -1315,7 +1315,7 @@ fn derive_page_status(
|
||||
}
|
||||
|
||||
fn collect_binding_blockers(node: &Node, component_count: &mut usize, blockers: &mut Vec<String>) {
|
||||
*component_count += usize::from(node.component.is_some());
|
||||
*component_count += node.component.is_some() as usize;
|
||||
if let StageStatus::NeedReview(reason) | StageStatus::Blocked(reason) =
|
||||
&node.metadata.layout_status
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user