소스 검색

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 {
                     (