Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ToCss' SequenceWriter not monomorphise like a maniac anymore #19838

Merged
merged 4 commits into from Jan 23, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Derive ToCss for font_feature_values_rule::SingleValue

  • Loading branch information
nox committed Jan 23, 2018
commit 3672856efa31195aaa89b007f790df925474001a
@@ -53,7 +53,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 {
@@ -67,12 +67,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>) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.