1
0
Fork 0
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:
Robin Appelman 2019-12-25 23:11:07 +01:00
commit 862c6fb3b5

View file

@ -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>()
}
}