File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ fn expand_property_fn(props: &[PropDesc]) -> TokenStream2 {
406
406
id: usize ,
407
407
pspec: & #crate_ident:: ParamSpec
408
408
) -> #crate_ident:: Value {
409
- let prop = DerivedPropertiesEnum :: try_from( id-1 )
409
+ let prop: DerivedPropertiesEnum = std :: convert :: TryFrom :: try_from( id-1 )
410
410
. unwrap_or_else( |_| panic!( "property not defined {}" , pspec. name( ) ) ) ;
411
411
match prop {
412
412
#( #match_branch_get, ) *
@@ -470,7 +470,7 @@ fn expand_set_property_fn(props: &[PropDesc]) -> TokenStream2 {
470
470
value: & #crate_ident:: Value ,
471
471
pspec: & #crate_ident:: ParamSpec
472
472
) {
473
- let prop = DerivedPropertiesEnum :: try_from( id-1 )
473
+ let prop: DerivedPropertiesEnum = std :: convert :: TryFrom :: try_from( id-1 )
474
474
. unwrap_or_else( |_| panic!( "property not defined {}" , pspec. name( ) ) ) ;
475
475
match prop {
476
476
#( #match_branch_set, ) *
You can’t perform that action at this time.
0 commit comments