mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-12 01:55:48 +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 addr = loop {
|
||||||
let mut d = [0; 11];
|
let mut d = [0; 11];
|
||||||
rng.fill_bytes(&mut d);
|
rng.fill_bytes(&mut d);
|
||||||
match vk.to_payment_address(Diversifier(d), ¶ms) {
|
if let Some(a) = vk.to_payment_address(Diversifier(d), ¶ms) {
|
||||||
Some(a) => break a,
|
break a;
|
||||||
None => {}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user