Jelajahi Sumber

Clean up some bits

Jonathan Kelley 1 tahun lalu
induk
melakukan
e801007698
2 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 0 2
      packages/core/tests/fuzzing.rs
  2. 1 1
      packages/rsx/src/attribute.rs

+ 0 - 2
packages/core/tests/fuzzing.rs

@@ -250,9 +250,7 @@ fn create_random_element(cx: DepthProps) -> Element {
                 )
                 .into_boxed_str(),
             ));
-            println!("{template:#?}");
             let node = cx.vnode(
-                None.into(),
                 None,
                 template,
                 dynamic_node_types

+ 1 - 1
packages/rsx/src/attribute.rs

@@ -146,7 +146,7 @@ impl ToTokens for ElementAttrNamed {
                     ElementAttrName::Custom(_) => todo!(),
                 },
                 _ => {
-                    quote! { dioxus_elements::events::#value(__cx, #value) }
+                    quote! { dioxus_elements::events::#value(#value) }
                 }
             }
         };