mirror of
https://github.com/romanz/electrs.git
synced 2025-02-23 14:50:45 +01:00
Fixup clippy comment
This commit is contained in:
parent
a0f8f148ea
commit
d7cfeed1cf
1 changed files with 2 additions and 5 deletions
|
@ -227,11 +227,8 @@ impl Rpc {
|
|||
);
|
||||
let heights = start_height..end_height;
|
||||
let count = heights.len();
|
||||
let hex_headers = heights.filter_map(|height| {
|
||||
chain
|
||||
.get_block_header(height)
|
||||
.map(|header| serialize_hex(header))
|
||||
});
|
||||
let hex_headers =
|
||||
heights.filter_map(|height| chain.get_block_header(height).map(serialize_hex));
|
||||
|
||||
Ok(json!({"count": count, "hex": String::from_iter(hex_headers), "max": max_count}))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue