mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 08:34:07 +02:00
remove unneeded clone
This commit is contained in:
parent
85abe2d9e8
commit
862c6fb3b5
1 changed files with 2 additions and 2 deletions
|
|
@ -515,8 +515,8 @@ pub struct LazyBitRead<T: BitRead<E> + BitSize, E: Endianness> {
|
|||
impl<T: BitRead<E> + BitSize, E: Endianness> LazyBitRead<T, E> {
|
||||
#[inline]
|
||||
/// Get the contents of the lazy struct
|
||||
pub fn read(self) -> Result<T> {
|
||||
self.source.clone().read::<T>()
|
||||
pub fn read(mut self) -> Result<T> {
|
||||
self.source.read::<T>()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue