mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
rm more generics when useless (#12595)
This commit is contained in:
@ -351,7 +351,7 @@ where
|
||||
{
|
||||
/// Returns the block hashes for the given range, if they are available.
|
||||
pub fn range_block_hashes(&self) -> Option<Vec<B256>> {
|
||||
self.headers.as_ref().map(|h| h.iter().map(|h| h.hash()).collect::<Vec<_>>())
|
||||
self.headers.as_ref().map(|h| h.iter().map(|h| h.hash()).collect())
|
||||
}
|
||||
|
||||
/// Returns whether or not the bodies map is fully populated with requested headers and bodies.
|
||||
|
||||
Reference in New Issue
Block a user