From 170580ed39978da51b2ec69425cfaefce70d053e Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Mon, 11 Sep 2023 23:37:02 +0100 Subject: [PATCH] Add `Display::Contents` support to the gentest script --- scripts/gentest/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gentest/src/main.rs b/scripts/gentest/src/main.rs index da57c339d..8034040c5 100644 --- a/scripts/gentest/src/main.rs +++ b/scripts/gentest/src/main.rs @@ -352,6 +352,7 @@ fn generate_node(ident: &str, node: &Value) -> TokenStream { let display = match style["display"] { Value::String(ref value) => match value.as_ref() { "none" => quote!(display: taffy::style::Display::None,), + "contents" => quote!(display: taffy::style::Display::Contents,), "block" => quote!(display: taffy::style::Display::Block,), "grid" => quote!(display: taffy::style::Display::Grid,), _ => quote!(display: taffy::style::Display::Flex,),