mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-01-30 15:32:14 +00:00
librustzcash: Use "if let" syntax
This commit is contained in:
parent
620213a0f0
commit
21efaccc9f
@ -24,9 +24,8 @@ fn test_key_agreement() {
|
||||
let addr = loop {
|
||||
let mut d = [0; 11];
|
||||
rng.fill_bytes(&mut d);
|
||||
match vk.to_payment_address(Diversifier(d), ¶ms) {
|
||||
Some(a) => break a,
|
||||
None => {}
|
||||
if let Some(a) = vk.to_payment_address(Diversifier(d), ¶ms) {
|
||||
break a;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user