Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Feb 22, 2025
1 parent e52f685 commit d9c0fe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/blitz-dom/src/layout/construct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,14 @@ pub(crate) fn collect_layout_children(

DisplayInside::Table => {
let (table_context, tlayout_children) = build_table_context(doc, container_node_id);
#[allow(clippy::arc_with_non_send_sync)]
let data = NodeSpecificData::TableRoot(Arc::new(table_context));
doc.nodes[container_node_id].is_table_root = true;
doc.nodes[container_node_id]
.data
.downcast_element_mut()
.unwrap()
.node_specific_data = NodeSpecificData::TableRoot(Arc::new(table_context));
.node_specific_data = data;
if let Some(before) = doc.nodes[container_node_id].before {
layout_children.push(before);
}
Expand Down

0 comments on commit d9c0fe7

Please # to comment.