Permalink
Browse files

Document a public macro.

Undocumented public macros emit warnings in nightly-2019-01-11,
and we #![deny] that warning.
  • Loading branch information...
SimonSapin committed Jan 11, 2019
1 parent 9b98beb commit 5e0091b88dd5899ad9199d6add07b30594d583a1
Showing with 1 addition and 0 deletions.
  1. +1 −0 components/style_traits/values.rs
@@ -432,6 +432,7 @@ impl_to_css_for_predefined_type!(::cssparser::RGBA);
impl_to_css_for_predefined_type!(::cssparser::Color);
impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);

/// Define an enum type with unit variants that each corrsepond to a CSS keyword.
#[macro_export]
macro_rules! define_css_keyword_enum {
(pub enum $name:ident { $($variant:ident = $css:expr,)+ }) => {

0 comments on commit 5e0091b

Please sign in to comment.