Skip to content

Commit e613898

Browse files
Added #[inline] to impl Encoder for EncoderImpl
1 parent 54769cf commit e613898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/enc/encoder.rs

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl<W: Writer, C: Config> EncoderImpl<W, C> {
3232
}
3333

3434
/// Return the underlying writer
35+
#[inline]
3536
pub fn into_writer(self) -> W {
3637
self.writer
3738
}
@@ -42,10 +43,12 @@ impl<W: Writer, C: Config> Encoder for EncoderImpl<W, C> {
4243

4344
type C = C;
4445

46+
#[inline]
4547
fn writer(&mut self) -> &mut Self::W {
4648
&mut self.writer
4749
}
4850

51+
#[inline]
4952
fn config(&self) -> &Self::C {
5053
&self.config
5154
}

0 commit comments

Comments
 (0)