rm more generics when useless (#12595)

This commit is contained in:
Thomas Coratger
2024-11-16 17:06:57 +01:00
committed by GitHub
parent d9ed07a367
commit dda1906588
15 changed files with 60 additions and 96 deletions

View File

@ -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.