Skip to content

Commit 08108af

Browse files
Aurashktsmbland
andauthored
simplify empty iterator checking
Co-authored-by: Tom Bland <t.bland@imperial.ac.uk>
1 parent 8cfa7fc commit 08108af

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/input.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ mod tests {
361361
assert!(
362362
read_csv_optional::<Record>(&file_path)
363363
.unwrap()
364-
.peekable()
365-
.peek()
364+
.next()
366365
.is_none()
367366
);
368367
}

0 commit comments

Comments
 (0)