gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 227Rust 7TOML 3CSS 1307 Definitions

Remove serde renames from Display (#153)

3bd95d61a3d4573d70c3a3dac2772d73e5ee5075 · by Justin Shrake · (4 years ago) · parent 51602fb4e · browse the tree at this commit

Semantic delta · 1

src/style.rs

  • signature changed enum Display pub

1 files · +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,
 }