Use the Separator trait for the filter property

This commit is contained in:
Anthony Ramine 2017-06-27 13:48:34 +02:00
parent 813883e1bd
commit 395f6be0a6
13 changed files with 66 additions and 131 deletions

View file

@ -88,7 +88,7 @@
use std::fmt;
#[allow(unused_imports)]
use style_traits::HasViewportPercentage;
use style_traits::ToCss;
use style_traits::{Separator, ToCss};
pub mod single_value {
#[allow(unused_imports)]
@ -186,7 +186,7 @@
% endif
}
for i in iter {
dest.write_str(", ")?;
dest.write_str(::style_traits::${separator}::separator())?;
i.to_css(dest)?;
}
Ok(())
@ -213,7 +213,7 @@
% endif
}
for i in iter {
dest.write_str(", ")?;
dest.write_str(::style_traits::${separator}::separator())?;
i.to_css(dest)?;
}
Ok(())