Skip to content

Commit 0cc3926

Browse files
committed
Fix more tests
1 parent a71eeb1 commit 0cc3926

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/yew-macro/tests/props_macro/props-pass.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ struct Props {
4444
}
4545

4646
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);
4949
::yew::props!(Props { a, b });
5050
}
5151

@@ -57,8 +57,8 @@ pub struct RawIdentProps {
5757
}
5858

5959
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);
6262
::yew::props!(RawIdentProps { r#true, r#pointless_raw_name });
6363
}
6464

@@ -68,7 +68,7 @@ struct BuildProp {
6868
}
6969

7070
fn pass_build_prop() {
71-
::yew::props!(BuildProp { build: 5 });
71+
::yew::props!(BuildProp { build: 5_usize });
7272
}
7373

7474
#[derive(::yew::Properties, ::std::cmp::PartialEq)]

0 commit comments

Comments
 (0)