mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Document public macros.
Undocumented public macros emit warnings in nightly-2019-01-11, and we #![deny] that warning.
This commit is contained in:
parent
9b98beb769
commit
3a710f22ed
2 changed files with 17 additions and 2 deletions
|
@ -432,7 +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);
|
||||
|
||||
#[macro_export]
|
||||
/// Define an enum type with unit variants that each corrsepond to a CSS keyword.
|
||||
macro_rules! define_css_keyword_enum {
|
||||
(pub enum $name:ident { $($variant:ident = $css:expr,)+ }) => {
|
||||
#[allow(missing_docs)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue