Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Update src/read_pair_iter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Marks <[email protected]>
  • Loading branch information
govinda-kamath and pmarks authored May 26, 2024
1 parent 5ef45b8 commit b8c9f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read_pair_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl ReadPairIter {
pub fn is_single_ended(&self) -> Result<bool, FastqError> {
// We only allow parsing single ended RA files
if !self.r1_interleaved {
Ok(false)
Ok(self.r2.is_none())

Check failure on line 328 in src/read_pair_iter.rs

View workflow job for this annotation

GitHub Actions / test

no field `r2` on type `&read_pair_iter::ReadPairIter`

error[E0609]: no field `r2` on type `&read_pair_iter::ReadPairIter` --> src/read_pair_iter.rs:328:21 | 328 | Ok(self.r2.is_none()) | ^^ unknown field | = note: available fields are: `r1_interleaved`, `buffer`, `rand`, `uniform`, `subsample_rate` ... and 2 others
} else if let Some(p) = self.iters.paths[0].as_ref() {
let rdr = Self::open_fastq_confirm_fmt(p)?;
let parser = fastq::Parser::new(rdr);
Expand Down

0 comments on commit b8c9f2d

Please sign in to comment.