1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 15:02:21 +01:00

Simplify .map() at Daemon::getblocktxids()

This commit is contained in:
Roman Zeyde 2018-12-03 07:27:08 +02:00
parent e9d9f6b16c
commit e49cef1bbc
No known key found for this signature in database
GPG key ID: 87CAE5FA46917CBB

View file

@ -483,7 +483,7 @@ impl Daemon {
.as_array()
.chain_err(|| "invalid block txids")?
.iter()
.map(|txid| parse_hash(txid))
.map(parse_hash)
.collect::<Result<Vec<Sha256dHash>>>()
}