Explorar o código

import the SuperInto trait in core macro

Evan Almloff hai 1 ano
pai
achega
52ea3465e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {
                     (