Skip to content

Commit

Permalink
fastq/io/reader: Simplify examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Aug 2, 2024
1 parent 8ee87b4 commit c55c1db
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions noodles-fastq/src/io/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ impl<R> Reader<R> {
/// # Examples
///
/// ```
/// # use std::io;
/// use noodles_fastq as fastq;
/// let data = [];
/// let reader = fastq::io::Reader::new(&data[..]);
/// assert!(reader.get_ref().is_empty());
/// let reader = fastq::io::Reader::new(io::empty());
/// let _inner = reader.get_ref();
/// ```
pub fn get_ref(&self) -> &R {
&self.inner
Expand All @@ -35,10 +35,10 @@ impl<R> Reader<R> {
/// # Examples
///
/// ```
/// # use std::io;
/// use noodles_fastq as fastq;
/// let data = [];
/// let mut reader = fastq::io::Reader::new(&data[..]);
/// assert!(reader.get_mut().is_empty());
/// let mut reader = fastq::io::Reader::new(io::empty());
/// let _inner = reader.get_mut();
/// ```
pub fn get_mut(&mut self) -> &mut R {
&mut self.inner
Expand All @@ -49,10 +49,10 @@ impl<R> Reader<R> {
/// # Examples
///
/// ```
/// # use std::io;
/// use noodles_fastq as fastq;
/// let data = [];
/// let reader = fastq::io::Reader::new(&data[..]);
/// assert!(reader.into_inner().is_empty());
/// let reader = fastq::io::Reader::new(io::empty());
/// let _inner = reader.into_inner();
/// ```
pub fn into_inner(self) -> R {
self.inner
Expand Down

0 comments on commit c55c1db

Please sign in to comment.