Skip to content

Commit 44419dc

Browse files
committed
Rename to ty to satisfy spell check
1 parent 348f22e commit 44419dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cw-schema-codegen/tests/python_tpl.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ fn simple_enum() {
9292
}
9393

9494
macro_rules! validator {
95-
($typ:ty, $example:expr) => {{
95+
($ty:ty, $example:expr) => {{
9696
(
97-
stringify!($typ),
98-
cw_schema::schema_of::<$typ>(),
97+
stringify!($ty),
98+
cw_schema::schema_of::<$ty>(),
9999
serde_json::to_string(&$example).unwrap(),
100100
{
101101
let a: Box<dyn FnOnce(&str)> = Box::new(|output| {
102-
let result = serde_json::from_str::<$typ>(output).unwrap();
102+
let result = serde_json::from_str::<$ty>(output).unwrap();
103103
assert_eq!(result, $example);
104104
});
105105
a

0 commit comments

Comments
 (0)