Skip to content

Commit

Permalink
Update noodles-bam/src/lazy/record/cigar.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Macias <[email protected]>
  • Loading branch information
tshauck and zaeleus authored Oct 7, 2023
1 parent 895ead4 commit ed02da9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions noodles-bam/src/lazy/record/cigar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ impl<'a> TryFrom<Cigar<'a>> for sam::record::Cigar {
type Error = io::Error;

fn try_from(bam_cigar: Cigar<'a>) -> Result<Self, Self::Error> {
let ops = bam_cigar.iter().collect::<io::Result<Vec<_>>>()?;
Ok(Self::from_iter(ops))
bam_cigar.iter().collect()
}
}

Expand Down

0 comments on commit ed02da9

Please sign in to comment.