mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Remove values::Verbatim.
No point of having two things that do the same. Bug: 1457635 Reviewed-by: xidorn MozReview-Commit-ID: Do1L4bvOeVQ
This commit is contained in:
parent
c508d8576d
commit
40a616920c
2 changed files with 1 additions and 16 deletions
|
@ -235,21 +235,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// A wrapper type that implements `ToCss` by printing its inner field.
|
||||
pub struct Verbatim<'a, T>(pub &'a T)
|
||||
where
|
||||
T: ?Sized + 'a;
|
||||
|
||||
impl<'a, T> ToCss for Verbatim<'a, T>
|
||||
where
|
||||
T: AsRef<str> + ?Sized + 'a,
|
||||
{
|
||||
#[inline]
|
||||
fn to_css<W>(&self, dest: &mut CssWriter<W>) -> fmt::Result where W: Write {
|
||||
dest.write_str(self.0.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
/// Type used as the associated type in the `OneOrMoreSeparated` trait on a
|
||||
/// type to indicate that a serialized list of elements of this type is
|
||||
/// separated by commas.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue