Skip to content

Commit 53fa203

Browse files
authored
fix(mater): remove the bounds on get_inner_mut (#775)
1 parent ad77e05 commit 53fa203

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mater/lib/src/v2/writer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ impl<W> Writer<W> {
1717
pub fn new(writer: W) -> Self {
1818
Self { writer }
1919
}
20+
21+
/// Get a mutable reference to the inner writer.
22+
pub fn get_inner_mut(&mut self) -> &mut W {
23+
&mut self.writer
24+
}
2025
}
2126

2227
impl<W> Writer<W>
@@ -69,11 +74,6 @@ where
6974
self.writer.flush().await?;
7075
Ok(self.writer)
7176
}
72-
73-
/// Get a mutable reference to the inner writer.
74-
pub fn get_inner_mut(&mut self) -> &mut W {
75-
&mut self.writer
76-
}
7777
}
7878

7979
/// Write a [`Header`].

0 commit comments

Comments
 (0)