This commit is contained in:
Finn Bear 2024-09-14 23:59:27 -07:00 committed by GitHub
parent 15ac51c399
commit 4da1263583
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,7 @@ impl PropField {
props_name: &'a Ident, props_name: &'a Ident,
vis: &'a Visibility, vis: &'a Visibility,
token: &'a GenericParam, token: &'a GenericParam,
) -> PropFieldCheck<'_> { ) -> PropFieldCheck<'a> {
let check_struct = self.to_check_name(props_name); let check_struct = self.to_check_name(props_name);
let check_arg = self.to_check_arg_name(props_name); let check_arg = self.to_check_arg_name(props_name);
PropFieldCheck { PropFieldCheck {

View File

@ -295,6 +295,7 @@ mod renderer;
#[cfg(feature = "csr")] #[cfg(feature = "csr")]
#[cfg(test)] #[cfg(test)]
#[allow(missing_docs)]
pub mod tests; pub mod tests;
/// The module that contains all events available in the framework. /// The module that contains all events available in the framework.

View File

@ -31,12 +31,14 @@ impl Component for Comp {
} }
#[derive(Debug)] #[derive(Debug)]
#[allow(missing_docs)]
pub struct TestLayout<'a> { pub struct TestLayout<'a> {
pub name: &'a str, pub name: &'a str,
pub node: VNode, pub node: VNode,
pub expected: &'a str, pub expected: &'a str,
} }
#[allow(missing_docs)]
pub fn diff_layouts(layouts: Vec<TestLayout<'_>>) { pub fn diff_layouts(layouts: Vec<TestLayout<'_>>) {
let document = gloo::utils::document(); let document = gloo::utils::document();
let scope: AnyScope = AnyScope::test(); let scope: AnyScope = AnyScope::test();

View File

@ -1 +1,2 @@
#[allow(missing_docs)]
pub mod layout_tests; pub mod layout_tests;

View File

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