mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
style: Do not require to import ToCss in define_css_keyword_enum.
This commit is contained in:
parent
2536e1ee98
commit
326f914018
7 changed files with 5 additions and 15 deletions
|
@ -472,7 +472,7 @@ macro_rules! __define_css_keyword_enum__actual {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToCss for $name {
|
||||
impl $crate::ToCss for $name {
|
||||
fn to_css<W>(&self, dest: &mut W) -> ::std::fmt::Result
|
||||
where W: ::std::fmt::Write
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
//! Helper types for the `@viewport` rule.
|
||||
|
||||
use {CSSPixel, PinchZoomFactor, ParseError};
|
||||
use cssparser::{Parser, ToCss};
|
||||
use {CSSPixel, PinchZoomFactor, ParseError, ToCss};
|
||||
use cssparser::Parser;
|
||||
use euclid::TypedSize2D;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue