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
|
||||
for _ in 0..leading_zero_count {
|
||||
ret.push(0);
|
||||
}
|
||||
ret.resize(ret.len() + leading_zero_count, 0);
|
||||
|
||||
for ch in ret.iter().rev() {
|
||||
writer.write_char(BASE58_CHARS[*ch as usize] as char)?;
|
||||
|
|
Loading…
Reference in New Issue