Memory Wallet Implementation #7
audits.yml
on: pull_request
Vet Rust dependencies
2m 19s
Check licenses
46s
Annotations
2 errors
unnecessary closure used to substitute value for `Option::None`:
zcash_client_memory/src/mem_wallet/wallet_write.rs#L58
error: unnecessary closure used to substitute value for `Option::None`
--> zcash_client_memory/src/mem_wallet/wallet_write.rs:58:22
|
58 | .map(|a| a.next().ok_or_else(|| Self::Error::AccountOutOfRange))
| ^^^^^^^^^---------------------------------------------
| |
| help: use `ok_or(..)` instead: `ok_or(Self::Error::AccountOutOfRange)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
|
unnecessary closure used to substitute value for `Option::None`:
zcash_client_memory/src/mem_wallet/wallet_write.rs#L53
error: unnecessary closure used to substitute value for `Option::None`
--> zcash_client_memory/src/mem_wallet/wallet_write.rs:53:32
|
53 | let seed_fingerprint = SeedFingerprint::from_seed(seed.expose_secret())
| ________________________________^
54 | | .ok_or_else(|| Self::Error::InvalidSeedLength)?;
| |______________--------------------------------------------^
| |
| help: use `ok_or(..)` instead: `ok_or(Self::Error::InvalidSeedLength)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `-D clippy::unnecessary-lazy-evaluations` implied by `-D warnings`
|