make all core tests compile

This commit is contained in:
Evan Almloff committed 2024-01-11 15:18:11 -06:00
1 parent a9d09d858b
commit fd0a53ab63
21 files changed
+123 -148

No files matched your search

+4 -4
View File
@@ -75,7 +75,7 @@ fn create() {
#[test]
fn create_list() {
let mut dom = VirtualDom::new(|cx| render! {(0..3).map(|f| render!( div { "hello" } ))}));
let mut dom = VirtualDom::new(|| render! {(0..3).map(|f| render!( div { "hello" } ))});
let _edits = dom.rebuild_to_vec().santize();
@@ -129,12 +129,12 @@ fn create_components() {
}
});
#[derive(Props)]
struct ChildProps<'a> {
#[derive(Props, Clone, PartialEq)]
struct ChildProps {
children: Element,
}
fn Child<'a>(cx: ChildProps) -> Element {
fn Child(cx: ChildProps) -> Element {
render! {
h1 {}
div { &cx.children }