Explorar o código

Merge branch 'master' of github.com:DioxusLabs/dioxus

Jonathan Kelley %!s(int64=2) %!d(string=hai) anos
pai
achega
e63226e15b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/core-macro/src/inlineprops.rs

+ 1 - 1
packages/core-macro/src/inlineprops.rs

@@ -158,7 +158,7 @@ impl ToTokens for InlinePropsBody {
             #maybe_async #vis fn #ident #fn_generics (#cx_token: Scope<#scope_lifetime #struct_name #generics>) #output
             #where_clause
             {
-                let #struct_name { #(#field_names),* } = &cx.props;
+                let #struct_name { #(#field_names),* } = &#cx_token.props;
                 #block
             }
         });