Skip to content

Commit 7299472

Browse files
committed
fix
Signed-off-by: coldWater <[email protected]>
1 parent 117f803 commit 7299472

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/query/functions/tests/it/type_check.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn test_type_check() {
8282
];
8383

8484
// 8 and 16 are just smaller 32.
85-
let size = vec!["32", "64"];
85+
let size = ["32", "64"];
8686

8787
let signed = size.iter().map(|s| format!("i{}", s)).collect::<Vec<_>>();
8888
let unsigned = size.iter().map(|s| format!("u{}", s)).collect::<Vec<_>>();
@@ -120,30 +120,30 @@ fn test_type_check() {
120120
.flat_map(|lhs| all_num.iter().map(move |rhs| (lhs, *rhs)))
121121
.collect::<Vec<_>>();
122122
for (lhs, rhs) in pair {
123-
run_ast(file, &format!("{lhs} > {rhs}"), &columns);
124-
run_ast(file, &format!("{lhs} = {rhs}"), &columns);
123+
run_ast(file, format!("{lhs} > {rhs}"), &columns);
124+
run_ast(file, format!("{lhs} = {rhs}"), &columns);
125125
}
126126

127127
for ty in types {
128-
run_ast(file, &format!("{ty} > 1"), &columns);
129-
run_ast(file, &format!("{ty} = 1"), &columns);
130-
run_ast(file, &format!("1 > {ty}"), &columns);
131-
run_ast(file, &format!("1 = {ty}"), &columns);
128+
run_ast(file, format!("{ty} > 1"), &columns);
129+
run_ast(file, format!("{ty} = 1"), &columns);
130+
run_ast(file, format!("1 > {ty}"), &columns);
131+
run_ast(file, format!("1 = {ty}"), &columns);
132132

133-
run_ast(file, &format!("{ty} > 1.0"), &columns);
134-
run_ast(file, &format!("{ty} = 1.0"), &columns);
135-
run_ast(file, &format!("1.0 > {ty}"), &columns);
136-
run_ast(file, &format!("1.0 = {ty}"), &columns);
133+
run_ast(file, format!("{ty} > 1.0"), &columns);
134+
run_ast(file, format!("{ty} = 1.0"), &columns);
135+
run_ast(file, format!("1.0 > {ty}"), &columns);
136+
run_ast(file, format!("1.0 = {ty}"), &columns);
137137

138-
run_ast(file, &format!("{ty} > '1'"), &columns);
139-
run_ast(file, &format!("{ty} = '1'"), &columns);
140-
run_ast(file, &format!("'1' > {ty}"), &columns);
141-
run_ast(file, &format!("'1' = {ty}"), &columns);
138+
run_ast(file, format!("{ty} > '1'"), &columns);
139+
run_ast(file, format!("{ty} = '1'"), &columns);
140+
run_ast(file, format!("'1' > {ty}"), &columns);
141+
run_ast(file, format!("'1' = {ty}"), &columns);
142142

143-
run_ast(file, &format!("{ty} > 1::uint64"), &columns);
144-
run_ast(file, &format!("{ty} = 1::uint64"), &columns);
145-
run_ast(file, &format!("1::uint64 > {ty}"), &columns);
146-
run_ast(file, &format!("1::uint64 = {ty}"), &columns);
143+
run_ast(file, format!("{ty} > 1::uint64"), &columns);
144+
run_ast(file, format!("{ty} = 1::uint64"), &columns);
145+
run_ast(file, format!("1::uint64 > {ty}"), &columns);
146+
run_ast(file, format!("1::uint64 = {ty}"), &columns);
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)