瀏覽代碼

import the SuperInto trait in core macro

Evan Almloff 1 年之前
父節點
當前提交
52ea3465e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core-macro/src/props/mod.rs

+ 1 - 1
packages/core-macro/src/props/mod.rs

@@ -972,7 +972,7 @@ Finally, call `.build()` to create the instance of `{name}`.
                     marker = Some(marker_ident.clone());
                     (
                         quote!(impl dioxus_core::prelude::SuperInto<#arg_type, #marker_ident>),
-                        quote!(#field_name.super_into()),
+                        quote!(dioxus_core::prelude::SuperInto::super_into(#field_name)),
                     )
                 } else if field.builder_attr.from_displayable {
                     (