diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs index 72ccbd94634..289281011c3 100644 --- a/components/style/counter_style/mod.rs +++ b/components/style/counter_style/mod.rs @@ -408,7 +408,7 @@ impl ToCss for System { } /// -#[derive(Clone, Debug, Eq, PartialEq, ToComputedValue, ToCss, ToShmem, MallocSizeOf)] +#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue, ToCss, ToShmem)] pub enum Symbol { /// String(crate::OwnedStr), @@ -461,7 +461,7 @@ impl Parse for Negative { } /// -#[derive(Clone, Debug, ToShmem, ToCss)] +#[derive(Clone, Debug, ToCss, ToShmem)] pub struct CounterRange { /// The start of the range. pub start: CounterBound, @@ -472,7 +472,7 @@ pub struct CounterRange { /// /// /// Empty represents 'auto' -#[derive(Clone, Debug, ToShmem, ToCss)] +#[derive(Clone, Debug, ToCss, ToShmem)] #[css(comma)] pub struct CounterRanges(#[css(iterable, if_empty = "auto")] pub crate::OwnedSlice); @@ -553,7 +553,7 @@ impl Parse for Fallback { } /// -#[derive(Clone, Debug, Eq, PartialEq, MallocSizeOf, ToComputedValue, ToCss, ToShmem)] +#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue, ToCss, ToShmem)] pub struct Symbols(#[css(iterable)] pub crate::OwnedSlice); impl Parse for Symbols { diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 56637af9463..ca9700737fe 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -136,7 +136,10 @@ % endif use crate::values::computed::ComputedVecIter; - <% is_shared_list = allow_empty and allow_empty != "NotInitial" and data.longhands_by_name[name].style_struct.inherited %> + <% + is_shared_list = allow_empty and allow_empty != "NotInitial" and \ + data.longhands_by_name[name].style_struct.inherited + %> // FIXME(emilio): Add an OwnedNonEmptySlice type, and figure out // something for transition-name, which is the only remaining user diff --git a/components/style_traits/owned_str.rs b/components/style_traits/owned_str.rs index e5fe1065712..42a83a07713 100644 --- a/components/style_traits/owned_str.rs +++ b/components/style_traits/owned_str.rs @@ -13,7 +13,7 @@ use std::ops::{Deref, DerefMut}; /// A struct that basically replaces a Box, but with a defined layout, /// suitable for FFI. #[repr(C)] -#[derive(Default, Clone, PartialEq, Eq, MallocSizeOf, ToShmem)] +#[derive(Clone, Default, Eq, MallocSizeOf, PartialEq, ToShmem)] pub struct OwnedStr(OwnedSlice); impl fmt::Debug for OwnedStr {