Skip to content

Commit

Permalink
Include remaining wasm features in doctests flag (#74)
Browse files Browse the repository at this point in the history
* Fix Dispatch::default not included in doctests

* Include storage
  • Loading branch information
intendednull authored Dec 28, 2023
1 parent da7a482 commit 0b14ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/yewdux/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl<S: Store> std::fmt::Debug for Dispatch<S> {
}
}

#[cfg(target_arch = "wasm32")]
#[cfg(any(doc, feature = "doctests", target_arch = "wasm32"))]
impl<S: Store> Default for Dispatch<S> {
fn default() -> Self {
Self::global()
Expand Down
2 changes: 1 addition & 1 deletion crates/yewdux/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod dispatch;
pub mod functional;
pub mod listener;
pub mod mrc;
#[cfg(target_arch = "wasm32")]
#[cfg(any(doc, feature = "doctests", target_arch = "wasm32"))]
pub mod storage;
pub mod store;
mod subscriber;
Expand Down

0 comments on commit 0b14ff9

Please sign in to comment.