style: Appease tidy.

This commit is contained in:
Emilio Cobos Álvarez 2018-07-01 01:01:46 +02:00
parent 719209316c
commit 8e5c853fca
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 5 deletions

View file

@ -71,7 +71,7 @@ bitflags! {
const IN_OPTIONAL_STATE = 1 << 22; const IN_OPTIONAL_STATE = 1 << 22;
/// <https://html.spec.whatwg.org/multipage/#selector-read-write> /// <https://html.spec.whatwg.org/multipage/#selector-read-write>
const IN_READ_WRITE_STATE = 1 << 22; const IN_READ_WRITE_STATE = 1 << 22;
/// <https://html.spec.whatwg.org/multipage/semantics-other.html#selector-defined> /// <https://html.spec.whatwg.org/multipage/#selector-defined>
const IN_DEFINED_STATE = 1 << 23; const IN_DEFINED_STATE = 1 << 23;
/// <https://html.spec.whatwg.org/multipage/#selector-visited> /// <https://html.spec.whatwg.org/multipage/#selector-visited>
const IN_VISITED_STATE = 1 << 24; const IN_VISITED_STATE = 1 << 24;

View file

@ -6,17 +6,16 @@
//! //!
//! https://drafts.csswg.org/mediaqueries-4/#typedef-media-condition //! https://drafts.csswg.org/mediaqueries-4/#typedef-media-condition
use cssparser::{Parser, Token};
use context::QuirksMode; use context::QuirksMode;
use cssparser::{Parser, Token};
use parser::ParserContext; use parser::ParserContext;
use std::fmt::{self, Write}; use std::fmt::{self, Write};
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss}; use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
use super::{Device, MediaFeatureExpression}; use super::{Device, MediaFeatureExpression};
/// A binary `and` or `or` operator. /// A binary `and` or `or` operator.
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, Parse, ToCss)] #[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, ToCss)]
#[allow(missing_docs)] #[allow(missing_docs)]
pub enum Operator { pub enum Operator {
And, And,
@ -24,7 +23,7 @@ pub enum Operator {
} }
/// Whether to allow an `or` condition or not during parsing. /// Whether to allow an `or` condition or not during parsing.
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, Parse, ToCss)] #[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, ToCss)]
enum AllowOr { enum AllowOr {
Yes, Yes,
No, No,