mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 06:59:49 +00:00
Minor fix.
This commit is contained in:
1 parent
209542581a
commit
8869741166
1 file changed
+1
-1
@@ -75,7 +75,7 @@ impl<'a> StreamWriter<'a> {
|
||||
value.as_slice_then(|s| {
|
||||
let new_offset = self.offset + s.len();
|
||||
if self.data.len() <= new_offset {
|
||||
let slice = &self.data[self.offset..new_offset];
|
||||
let slice = &mut self.data[self.offset..new_offset];
|
||||
self.offset = new_offset;
|
||||
slice.copy_from_slice(s);
|
||||
true
|
||||
|
||||
Reference in new issue
Block a user