Remove useless borrow (#9615)

This commit is contained in:
Alexander Theißen
2021-08-24 11:54:30 +02:00
committed by GitHub
parent 84452e8c60
commit ac9c3259bf
+1 -1
View File
@@ -105,7 +105,7 @@ pub mod wasmi {
let range = checked_range(dest_addr.into(), source.len(), destination.len())
.ok_or_else(|| Error::Other("memory write is out of bounds".into()))?;
&mut destination[range].copy_from_slice(source);
destination[range].copy_from_slice(source);
Ok(())
})
}