Skip to content

Commit bea7444

Browse files
committed
1 parent 5a3b88d commit bea7444

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ast.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,14 @@ mod tests {
299299
range_hint: "",
300300
lines: vec![],
301301
};
302-
for (input, expected) in vec![
303-
("", None),
302+
for (input, expected) in [("", None),
304303
(" ", None),
305304
(" ", None),
306305
("x", Some("x")),
307306
(" x", Some("x")),
308307
("x ", Some("x ")),
309308
(" x ", Some("x ")),
310-
(" abc def ", Some("abc def ")),
311-
] {
309+
(" abc def ", Some("abc def "))] {
312310
h.range_hint = input;
313311
assert_eq!(h.hint(), expected);
314312
}

0 commit comments

Comments
 (0)