From e3e826d4fbfff49e43076d636af5de6cfbf3dffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 25 May 2019 03:19:12 +0200 Subject: [PATCH] style: Appease tidy. --- components/style/counter_style/mod.rs | 8 ++++---- components/style/properties/helpers.mako.rs | 5 ++++- components/style_traits/owned_str.rs | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) 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 {