Skip to content

Commit

Permalink
fix(mater): remove the bounds on get_inner_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Feb 21, 2025
1 parent ad77e05 commit a3bbff8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mater/lib/src/v2/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ impl<W> Writer<W> {
pub fn new(writer: W) -> Self {
Self { writer }
}

/// Get a mutable reference to the inner writer.
pub fn get_inner_mut(&mut self) -> &mut W {
&mut self.writer
}
}

impl<W> Writer<W>
Expand Down Expand Up @@ -69,11 +74,6 @@ where
self.writer.flush().await?;
Ok(self.writer)
}

/// Get a mutable reference to the inner writer.
pub fn get_inner_mut(&mut self) -> &mut W {
&mut self.writer
}
}

/// Write a [`Header`].
Expand Down

0 comments on commit a3bbff8

Please sign in to comment.