Skip to content

Commit

Permalink
Merge branch 'master' of github.com:finnbear/yew into dynamic_basename_2
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 16, 2024
2 parents 5bcfd0e + 4da1263 commit 69b6126
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/yew-macro/src/derive_props/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl PropField {
props_name: &'a Ident,
vis: &'a Visibility,
token: &'a GenericParam,
) -> PropFieldCheck<'_> {
) -> PropFieldCheck<'a> {
let check_struct = self.to_check_name(props_name);
let check_arg = self.to_check_arg_name(props_name);
PropFieldCheck {
Expand Down
1 change: 1 addition & 0 deletions packages/yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ mod renderer;

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

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

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

#[allow(missing_docs)]
pub fn diff_layouts(layouts: Vec<TestLayout<'_>>) {
let document = gloo::utils::document();
let scope: AnyScope = AnyScope::test();
Expand Down
1 change: 1 addition & 0 deletions packages/yew/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#[allow(missing_docs)]
pub mod layout_tests;
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 69b6126

Please sign in to comment.