tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definiciones

Remove serde renames from Display (#153)

3bd95d61a3d4573d70c3a3dac2772d73e5ee5075 · por Justin Shrake · (hace 4 años) · padre 51602fb4e · ver el árbol en este commit

Delta semántico · 1

src/style.rs

  • cambió de firma enum Display pub

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