Skip to content

Commit 53d7eaa

Browse files
committed
Fix doctest.
1 parent 70265e4 commit 53d7eaa

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

packages/stylist-core/src/ast/sheet.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ impl ToStyleStr for Sheet {
7878
}
7979
}
8080

81-
#[cfg_attr(doc, doc(cfg(feature = "parser")))]
8281
#[cfg(feature = "parser")]
8382
mod feat_parser {
8483
use once_cell::sync::Lazy;

packages/stylist-core/src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type JsValue = ();
2121
#[derive(Debug, Error, PartialEq)]
2222
pub enum Error {
2323
/// Failed to parse CSS.
24-
#[cfg_attr(doc, doc(cfg(feature = "parser")))]
2524
#[cfg(feature = "parser")]
2625
#[error("Failed to Parse CSS, due to:\n{}", .reason)]
2726
Parse {

packages/stylist-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub use error::{Error, Result, ResultDisplay};
1010
pub mod ast;
1111
pub mod bow;
1212

13-
#[cfg_attr(doc, doc(cfg(feature = "parser")))]
1413
#[cfg(feature = "parser")]
1514
mod parser;
1615

packages/stylist/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! To enable yew integration, enable the `yew_integration` feature in `Cargo.toml`.
1515
//!
16-
//! For a detailed usage with yew, see the [`yew`](crate::yew) module.
16+
//! For a detailed usage with yew, see the [`yew`] module.
1717
//!
1818
//! ### Syntax
1919
//!
@@ -94,6 +94,8 @@
9494
//! - `macros`: Enabled by default, this flag enables procedural macro support.
9595
//! - `random`: Enabled by default, this flag uses `fastrand` crate to generate a random class name.
9696
//! Disabling this flag will opt for a class name that is counter-based.
97+
//! - `browser_env`: **Disabled by default**, this flag enables browser-specific APIs. Only enable
98+
//! this if you are running in a browser environment.
9799
//! - `parser`: Disabled by default, this flag enables runtime parsing of styles from strings. You
98100
//! don't need to enable this to generate styles via the macros.
99101
//! - `yew_integration`: This flag enables yew integration, which implements

packages/stylist/src/yew/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ impl IntoPropValue<StyleSource> for Sheet {
151151
}
152152
}
153153

154-
#[cfg_attr(doc, doc(cfg(feature = "parser")))]
155154
#[cfg(feature = "parser")]
156155
mod feat_parser {
157156
use std::borrow::Cow;

0 commit comments

Comments
 (0)