mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
order derivable traits lists
Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
This commit is contained in:
parent
ab73f3d61d
commit
c5fe235112
194 changed files with 553 additions and 552 deletions
|
@ -34,7 +34,7 @@ use selectors::parser::SelectorParseError;
|
|||
///
|
||||
/// This unit corresponds to the smallest addressable element of the display hardware.
|
||||
#[cfg(not(feature = "servo"))]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub enum DevicePixel {}
|
||||
|
||||
/// Opaque type stored in type-unsafe work queues for parallel layout.
|
||||
|
@ -148,7 +148,7 @@ impl<'i> ValueParseError<'i> {
|
|||
}
|
||||
|
||||
/// The result of parsing a property declaration.
|
||||
#[derive(PartialEq, Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum PropertyDeclarationParseError<'i> {
|
||||
/// The property declaration was for an unknown property.
|
||||
UnknownProperty(CowRcStr<'i>),
|
||||
|
|
|
@ -396,7 +396,7 @@ macro_rules! __define_css_keyword_enum__actual {
|
|||
[ $( $css: expr => $variant: ident ),+ ]
|
||||
[ $( $alias: expr => $alias_variant: ident ),* ]) => {
|
||||
#[allow(non_camel_case_types, missing_docs)]
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq $(, $derived_trait )* )]
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq$(, $derived_trait )* )]
|
||||
pub enum $name {
|
||||
$( $variant ),+
|
||||
}
|
||||
|
@ -443,7 +443,7 @@ pub mod specified {
|
|||
/// Whether to allow negative lengths or not.
|
||||
#[repr(u8)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum AllowedLengthType {
|
||||
/// Allow all kind of lengths.
|
||||
All,
|
||||
|
|
|
@ -122,7 +122,7 @@ impl ToCss for ViewportConstraints {
|
|||
}
|
||||
|
||||
/// https://drafts.csswg.org/css-device-adapt/#descdef-viewport-zoom
|
||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub enum Zoom {
|
||||
/// A number value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue