Skip to content

Commit 2e3828e

Browse files
authored
Merge pull request #29 from kpwebb/main
prevent panic on parser io error
2 parents f5ed59c + e7ad96e commit 2e3828e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/.DS_Store

6 KB
Binary file not shown.

src/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl SP3 {
103103
let mut epoch = Epoch::default();
104104

105105
for line in reader.lines() {
106-
let line = line.unwrap();
106+
let line = line?;
107107
let line = line.trim();
108108

109109
if sp3_comment(line) {

0 commit comments

Comments
 (0)