chore(primitives): use reth::Bytes and implements arbitrary (#776)

* clippy

* add arbitrary to reth Bytes

* clean

* add missing dependency
This commit is contained in:
joshieDo
2023-01-09 19:09:18 +08:00
committed by GitHub
parent d98f9fe507
commit 2b5ee2b18d
8 changed files with 76 additions and 26 deletions

View File

@ -194,15 +194,13 @@ mod tests {
let actual_inbound = bandwidth_meter.total_inbound();
assert_eq!(
actual_inbound, expected_inbound,
"Expected {} inbound bytes, but got {}",
expected_inbound, actual_inbound,
"Expected {expected_inbound} inbound bytes, but got {actual_inbound}",
);
let actual_outbound = bandwidth_meter.total_outbound();
assert_eq!(
actual_outbound, expected_outbound,
"Expected {} inbound bytes, but got {}",
expected_outbound, actual_outbound,
"Expected {expected_outbound} inbound bytes, but got {actual_outbound}",
);
}