diff --git a/src/writer.rs b/src/writer.rs index a5075e2d..bdcc46cf 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -14,18 +14,18 @@ const fn bits_of() -> usize { } /// Container to use with `to_writer` -pub struct Writer<'a, W: Write> { - pub(crate) inner: &'a mut W, +pub struct Writer { + pub(crate) inner: W, /// Leftover bits pub leftover: BitVec, /// Total bits written pub bits_written: usize, } -impl<'a, W: Write> Writer<'a, W> { +impl Writer { /// Create a new `Writer` #[inline] - pub fn new(inner: &'a mut W) -> Self { + pub fn new(inner: W) -> Self { Self { inner, leftover: BitVec::new(),