mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +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> {
|
impl<T: BitRead<E> + BitSize, E: Endianness> LazyBitRead<T, E> {
|
||||||
#[inline]
|
#[inline]
|
||||||
/// Get the contents of the lazy struct
|
/// Get the contents of the lazy struct
|
||||||
pub fn read(self) -> Result<T> {
|
pub fn read(mut self) -> Result<T> {
|
||||||
self.source.clone().read::<T>()
|
self.source.read::<T>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue