Use .get(0) instead of .iter().next(), clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
This commit is contained in:
parent
af98b8da06
commit
2380634496
@ -1633,7 +1633,7 @@ mod test {
|
|||||||
.database
|
.database
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.set_script_pubkey(
|
.set_script_pubkey(
|
||||||
&bitcoin::Address::from_str(&tx_meta.output.iter().next().unwrap().to_address)
|
&bitcoin::Address::from_str(&tx_meta.output.get(0).unwrap().to_address)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.script_pubkey(),
|
.script_pubkey(),
|
||||||
KeychainKind::External,
|
KeychainKind::External,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user