浏览代码

fix: merge conflicts

Jonathan Kelley 3 年之前
父节点
当前提交
56517ef5de
共有 3 个文件被更改,包括 5 次插入2 次删除
  1. 2 2
      packages/core-macro/src/rsx/mod.rs
  2. 2 0
      packages/core/src/mutations.rs
  3. 1 0
      packages/desktop/src/desktop_context.rs

+ 2 - 2
packages/core-macro/src/rsx/mod.rs

@@ -79,7 +79,7 @@ impl ToTokens for CallBody {
         match &self.custom_context {
             // The `in cx` pattern allows directly rendering
             Some(ident) => out_tokens.append_all(quote! {
-                #ident.render(LazyNodes::new_some(move |__cx: NodeFactory| -> VNode {
+                #ident.render(LazyNodes::new(move |__cx: NodeFactory| -> VNode {
                     use dioxus_elements::{GlobalAttributes, SvgAttributes};
                     #inner
                 }))
@@ -87,7 +87,7 @@ impl ToTokens for CallBody {
 
             // Otherwise we just build the LazyNode wrapper
             None => out_tokens.append_all(quote! {
-                LazyNodes::new_some(move |__cx: NodeFactory| -> VNode {
+                LazyNodes::new(move |__cx: NodeFactory| -> VNode {
                     use dioxus_elements::{GlobalAttributes, SvgAttributes};
                     #inner
                 })

+ 2 - 0
packages/core/src/mutations.rs

@@ -181,6 +181,8 @@ pub enum DomEdit<'bump> {
 
         /// The name of the attribute to remove.
         name: &'static str,
+
+        /// The namespace of the attribute.
         ns: Option<&'bump str>,
     },
 }

+ 1 - 0
packages/desktop/src/desktop_context.rs

@@ -125,6 +125,7 @@ use wry::application::window::Fullscreen as WryFullscreen;
 
 use crate::controller::DesktopController;
 
+#[derive(Debug)]
 pub enum UserWindowEvent {
     Update,