Browse Source

import the SuperInto trait in core macro

Evan Almloff 1 year ago
parent
commit
52ea3465e6
1 changed files with 1 additions and 1 deletions
  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 {
                     (