mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix CI. (#3727)
This commit is contained in:
parent
15ac51c399
commit
4da1263583
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -1 +1,2 @@
|
||||
#[allow(missing_docs)]
|
||||
pub mod layout_tests;
|
||||
|
||||
@ -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)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user