mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: bump alloy 0.11 (#14122)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -199,7 +199,7 @@ where
|
||||
let type_name = type_name::<T>();
|
||||
print!("{}", &type_name);
|
||||
|
||||
let mut bytes = std::iter::repeat(0u8).take(256).collect::<Vec<u8>>();
|
||||
let mut bytes = std::iter::repeat_n(0u8, 256).collect::<Vec<u8>>();
|
||||
let mut compact_buffer = vec![];
|
||||
|
||||
let mut values = Vec::with_capacity(VECTOR_SIZE);
|
||||
@ -215,7 +215,7 @@ where
|
||||
Err(err) => {
|
||||
if tries < 5 && matches!(err, arbitrary::Error::NotEnoughData) {
|
||||
tries += 1;
|
||||
bytes.extend(std::iter::repeat(0u8).take(256));
|
||||
bytes.extend(std::iter::repeat_n(0u8, 256));
|
||||
} else {
|
||||
return Err(err)?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user