Przeglądaj źródła

import the SuperInto trait in core macro

Evan Almloff 1 rok temu
rodzic
commit
52ea3465e6
1 zmienionych plików z 1 dodań i 1 usunięć
  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());
                     marker = Some(marker_ident.clone());
                     (
                     (
                         quote!(impl dioxus_core::prelude::SuperInto<#arg_type, #marker_ident>),
                         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 {
                 } else if field.builder_attr.from_displayable {
                     (
                     (