File tree 1 file changed +5
-5
lines changed
packages/yew-macro/tests/props_macro
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ struct Props {
44
44
}
45
45
46
46
fn pass_simple_props ( ) {
47
- :: yew:: props!( Props { a: 5 } ) ;
48
- let ( a, b) = ( 3 , 5 ) ;
47
+ :: yew:: props!( Props { a: 5_usize } ) ;
48
+ let ( a, b) = ( 3_usize , 5_usize ) ;
49
49
:: yew:: props!( Props { a, b } ) ;
50
50
}
51
51
@@ -57,8 +57,8 @@ pub struct RawIdentProps {
57
57
}
58
58
59
59
fn pass_raw_idents ( ) {
60
- :: yew:: props!( RawIdentProps { r#true: 5 } ) ;
61
- let ( r#true, r#pointless_raw_name) = ( 3 , 5 ) ;
60
+ :: yew:: props!( RawIdentProps { r#true: 5_usize } ) ;
61
+ let ( r#true, r#pointless_raw_name) = ( 3_usize , 5_usize ) ;
62
62
:: yew:: props!( RawIdentProps { r#true, r#pointless_raw_name } ) ;
63
63
}
64
64
@@ -68,7 +68,7 @@ struct BuildProp {
68
68
}
69
69
70
70
fn pass_build_prop ( ) {
71
- :: yew:: props!( BuildProp { build: 5 } ) ;
71
+ :: yew:: props!( BuildProp { build: 5_usize } ) ;
72
72
}
73
73
74
74
#[ derive( :: yew:: Properties , :: std:: cmp:: PartialEq ) ]
You can’t perform that action at this time.
0 commit comments