Skip to content

Commit

Permalink
Fix Yoga benchmark helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 11, 2023
1 parent 652227d commit d357af5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benches/src/yoga_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ pub fn apply_taffy_style(node: &mut yg::Node, style: &tf::Style) {
node.set_display(match style.display {
tf::Display::None => yg::Display::None,
tf::Display::Flex => yg::Display::Flex,
tf::Display::Contents => panic!("Yoga does not support display: contents"),
tf::Display::Grid => panic!("Yoga does not support CSS Grid layout"),
tf::Display::Block => panic!("Yoga does not support CSS Block layout"),
});
Expand Down

0 comments on commit d357af5

Please sign in to comment.