Skip to content

Commit

Permalink
Derive ToCss for font_feature_values_rule::SingleValue
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jan 22, 2018
1 parent a1841a2 commit 62acf76
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions components/style/stylesheets/font_feature_values_rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub trait ToGeckoFontFeatureValues {
}

/// A @font-feature-values block declaration value that keeps one value.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, ToCss)]
pub struct SingleValue(pub u32);

impl Parse for SingleValue {
Expand All @@ -66,12 +66,6 @@ impl Parse for SingleValue {
}
}

impl ToCss for SingleValue {
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
self.0.to_css(dest)
}
}

#[cfg(feature = "gecko")]
impl ToGeckoFontFeatureValues for SingleValue {
fn to_gecko_font_feature_values(&self, array: &mut nsTArray<u32>) {
Expand Down

0 comments on commit 62acf76

Please sign in to comment.