fix clippy lint by using resize instead of push
This commit is contained in:
parent
deeb160b86
commit
4646690521
|
@ -178,9 +178,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
// ... then reverse it and convert to chars
|
// ... then reverse it and convert to chars
|
||||||
for _ in 0..leading_zero_count {
|
ret.resize(ret.len() + leading_zero_count, 0);
|
||||||
ret.push(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
for ch in ret.iter().rev() {
|
for ch in ret.iter().rev() {
|
||||||
writer.write_char(BASE58_CHARS[*ch as usize] as char)?;
|
writer.write_char(BASE58_CHARS[*ch as usize] as char)?;
|
||||||
|
|
Loading…
Reference in New Issue