Skip to content

Commit

Permalink
AnyScope::test needs feature = test cfg + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Oct 13, 2024
1 parent 826c25a commit 3d93ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/yew/src/html/component/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ mod feat_csr {
use crate::scheduler;

impl AnyScope {
#[cfg(test)]
#[cfg(any(test, feature = "test"))]
pub(crate) fn test() -> Self {
Self {
type_id: TypeId::of::<()>(),
Expand Down
2 changes: 1 addition & 1 deletion packages/yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ mod app_handle;
#[cfg(feature = "csr")]
mod renderer;

#[cfg(all(feature = "csr", any(test, feature="test")))]
#[cfg(all(feature = "csr", any(test, feature = "test")))]
#[allow(missing_docs)]
pub mod tests;

Expand Down

0 comments on commit 3d93ce7

Please sign in to comment.