Skip to content

Commit 7afe5bd

Browse files
author
Grahame Bowland
committed
use syntactic sugar
1 parent 039ad81 commit 7afe5bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

csv.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,15 @@ mod test {
249249
assert(i == vec::len(expected));
250250
};
251251
// test default reader params
252-
chk({|inp| new_reader_readlen(inp, ',', '"', 2u) });
252+
chk() { |inp|
253+
new_reader_readlen(inp, ',', '"', 2u)
254+
};
253255
// test continuations over read buffers
254256
let j = 1u;
255257
while j < str::len(testdata) {
256-
chk({|inp| new_reader_readlen(inp, ',', '"', j) });
258+
chk() { |inp|
259+
new_reader_readlen(inp, ',', '"', j)
260+
};
257261
j += 1u;
258262
}
259263
}

0 commit comments

Comments
 (0)