We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad77e05 commit 53fa203Copy full SHA for 53fa203
mater/lib/src/v2/writer.rs
@@ -17,6 +17,11 @@ impl<W> Writer<W> {
17
pub fn new(writer: W) -> Self {
18
Self { writer }
19
}
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
+ }
25
26
27
impl<W> Writer<W>
@@ -69,11 +74,6 @@ where
69
74
self.writer.flush().await?;
70
75
Ok(self.writer)
71
76
72
-
73
- /// Get a mutable reference to the inner writer.
- pub fn get_inner_mut(&mut self) -> &mut W {
- &mut self.writer
- }
77
78
79
/// Write a [`Header`].
0 commit comments