We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6105cb1 commit 9889d19Copy full SHA for 9889d19
src/serializer.rs
@@ -24,23 +24,6 @@ pub trait ToCss {
24
self.to_css(&mut s).unwrap();
25
s
26
}
27
-
28
- /// Serialize `self` in CSS syntax and return a result compatible with `std::fmt::Show`.
29
- ///
30
- /// Typical usage is, for a `Foo` that implements `ToCss`:
31
32
- /// ```{rust,ignore}
33
- /// use std::fmt;
34
- /// impl fmt::Show for Foo {
35
- /// #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.fmt_to_css(f) }
36
- /// }
37
- /// ```
38
39
- /// (This is a convenience wrapper for `to_css` and probably should not be overridden.)
40
- #[inline]
41
- fn fmt_to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
42
- self.to_css(dest).map_err(|_| fmt::Error)
43
- }
44
45
46
#[inline]
0 commit comments