Skip to content

Commit

Permalink
sam/io/reader: Use records iterator instead of record buffers iterato…
Browse files Browse the repository at this point in the history
…r for alignment records
  • Loading branch information
zaeleus committed Dec 12, 2024
1 parent 506989e commit f11abb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions noodles-sam/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Changed

* sam/io/reader: Use records iterator instead of record buffers iterator for
alignment records.

### Fixed

* sam/alignment/record/data/field/tag: Fix original UMI quality scores (`BZ`)
Expand Down
4 changes: 2 additions & 2 deletions noodles-sam/src/io/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ where

fn alignment_records<'a>(
&'a mut self,
header: &'a Header,
_header: &'a Header,
) -> Box<dyn Iterator<Item = io::Result<Box<dyn crate::alignment::Record>>> + 'a> {
Box::new(self.record_bufs(header).map(|result| {
Box::new(self.records().map(|result| {
result.map(|record| Box::new(record) as Box<dyn crate::alignment::Record>)
}))
}
Expand Down

0 comments on commit f11abb5

Please sign in to comment.