aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_derive/animate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style_derive/animate.rs')
-rw-r--r--components/style_derive/animate.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style_derive/animate.rs b/components/style_derive/animate.rs
index 59b19214971..9549100ad08 100644
--- a/components/style_derive/animate.rs
+++ b/components/style_derive/animate.rs
@@ -112,14 +112,14 @@ fn derive_variant_arm(
}
}
-#[darling(attributes(animation), default)]
#[derive(Default, FromDeriveInput)]
+#[darling(attributes(animation), default)]
pub struct AnimationInputAttrs {
pub no_bound: Option<PathList>,
}
-#[darling(attributes(animation), default)]
#[derive(Default, FromVariant)]
+#[darling(attributes(animation), default)]
pub struct AnimationVariantAttrs {
pub error: bool,
// Only here because of structs, where the struct definition acts as a
@@ -127,8 +127,8 @@ pub struct AnimationVariantAttrs {
pub no_bound: Option<PathList>,
}
-#[darling(attributes(animation), default)]
#[derive(Default, FromField)]
+#[darling(attributes(animation), default)]
pub struct AnimationFieldAttrs {
pub constant: bool,
pub field_bound: bool,