Simplify using ..

This commit is contained in:
Stephen Chung
2022-02-08 09:02:15 +08:00
parent 187a20fd8b
commit f8cee0fe4e
54 changed files with 1184 additions and 1190 deletions

View File

@@ -124,7 +124,7 @@ pub mod blob_functions {
return 0;
}
let (index, _) = calc_offset_len(blob.len(), index, 0);
let (index, ..) = calc_offset_len(blob.len(), index, 0);
if index >= blob.len() {
0
@@ -162,7 +162,7 @@ pub mod blob_functions {
return;
}
let (index, _) = calc_offset_len(blob.len(), index, 0);
let (index, ..) = calc_offset_len(blob.len(), index, 0);
if index < blob.len() {
blob[index] = (value & 0x000000ff) as u8;
@@ -256,7 +256,7 @@ pub mod blob_functions {
return;
}
let (index, _) = calc_offset_len(blob.len(), index, 0);
let (index, ..) = calc_offset_len(blob.len(), index, 0);
if index >= blob.len() {
blob.push(value);