aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/lib.rs')
-rw-r--r--components/style/lib.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/components/style/lib.rs b/components/style/lib.rs
index d4d3855a481..d789c1d3305 100644
--- a/components/style/lib.rs
+++ b/components/style/lib.rs
@@ -134,8 +134,8 @@ pub mod traversal_flags;
#[allow(non_camel_case_types)]
pub mod values;
-use std::fmt;
-use style_traits::ToCss;
+use std::fmt::{self, Write};
+use style_traits::{CssWriter, ToCss};
#[cfg(feature = "gecko")] pub use gecko_string_cache as string_cache;
#[cfg(feature = "gecko")] pub use gecko_string_cache::Atom;
@@ -181,11 +181,13 @@ longhand_properties_idents!(reexport_computed_values);
/// Serializes as CSS a comma-separated list of any `T` that supports being
/// serialized as CSS.
-pub fn serialize_comma_separated_list<W, T>(dest: &mut W,
- list: &[T])
- -> fmt::Result
- where W: fmt::Write,
- T: ToCss,
+pub fn serialize_comma_separated_list<W, T>(
+ dest: &mut CssWriter<W>,
+ list: &[T],
+) -> fmt::Result
+where
+ W: Write,
+ T: ToCss,
{
if list.is_empty() {
return Ok(());