Skip to content

Commit

Permalink
fix: dont panic on erroneous file header (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn authored Sep 5, 2023
1 parent 8492d91 commit 6fde238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<R> FileReader<R> {
.and_then(|idx| {
self.buf[idx..]
.starts_with(b"osu file format v")
.then_some(self.buf[idx + 17..].iter())
.then(|| self.buf[idx + 17..].iter())
})
.and_then(|mut num| {
let mut n = num
Expand Down

0 comments on commit 6fde238

Please sign in to comment.