Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 13, 2024
1 parent 15ac51c commit 7038858
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ mod renderer;

#[cfg(feature = "csr")]
#[cfg(test)]
pub mod tests;
pub(crate) mod tests;

/// The module that contains all events available in the framework.
pub mod events {
Expand Down
4 changes: 2 additions & 2 deletions packages/yew/src/tests/layout_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ impl Component for Comp {
}

#[derive(Debug)]
pub struct TestLayout<'a> {
pub(crate) struct TestLayout<'a> {
pub name: &'a str,
pub node: VNode,
pub expected: &'a str,
}

pub fn diff_layouts(layouts: Vec<TestLayout<'_>>) {
pub(crate) fn diff_layouts(layouts: Vec<TestLayout<'_>>) {
let document = gloo::utils::document();
let scope: AnyScope = AnyScope::test();
let parent_element = document.create_element("div").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tools/website-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Level {

fn write_into(&self, dst: &mut String, name: &str, level: usize) -> fmt::Result {
self.write_space(dst, level);
let name = name.replace(|c| c == '-' || c == '.', "_");
let name = name.replace(&['-', '.'], "_");
writeln!(dst, "pub mod {name} {{")?;

self.write_inner(dst, level + 1)?;
Expand Down

0 comments on commit 7038858

Please sign in to comment.