tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Sutichaykuna

Remove serde renames from Display (#153)

3bd95d61a3d4573d70c3a3dac2772d73e5ee5075 · ruwaq Justin Shrake · (4 wata ñawpaq) · tayta 51602fb4e · kay commitpi sach'ata qhaway

Semántico sayk'uy · 1

src/style.rs

  • silq'uyninpi t'ikrakurqan enum Display pub

1 qillqakuna · +0 −2

diff --git a/src/style.rs b/src/style.rs
index fdab50f61..ee54620f3 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -95,10 +95,8 @@ impl Default for AlignContent {
 #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
 pub enum Display {
     /// The children will follow the flexbox layout algorithm
-    #[cfg_attr(feature = "serde", serde(rename = "flex"))]
     Flex,
     /// The children will not be laid out, and will follow absolute positioning
-    #[cfg_attr(feature = "serde", serde(rename = "none"))]
     None,
 }