mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-08 09:09:31 +00:00
clippy
This commit is contained in:
parent
6f9c3b2af3
commit
584bfb2052
@ -41,7 +41,6 @@ impl<N: KeyTreeNode> KeyTree<N> {
|
||||
let root_keys = N::from_seed(seed_fit);
|
||||
let account_id_map = root_keys
|
||||
.account_ids()
|
||||
.into_iter()
|
||||
.map(|id| (id, ChainIndex::root()))
|
||||
.collect();
|
||||
|
||||
@ -54,7 +53,6 @@ impl<N: KeyTreeNode> KeyTree<N> {
|
||||
pub fn new_from_root(root: N) -> Self {
|
||||
let account_id_map = root
|
||||
.account_ids()
|
||||
.into_iter()
|
||||
.map(|id| (id, ChainIndex::root()))
|
||||
.collect();
|
||||
|
||||
|
||||
@ -156,7 +156,7 @@ impl WalletSubcommand for AuthTransferSubcommand {
|
||||
anyhow::bail!("Provide only one of --to or --to-label")
|
||||
}
|
||||
};
|
||||
let to_identifier = to_identifier.unwrap_or(rand::random());
|
||||
let to_identifier = to_identifier.unwrap_or_else(rand::random);
|
||||
let underlying_subcommand = match (to, to_npk, to_vpk) {
|
||||
(None, None, None) => {
|
||||
anyhow::bail!(
|
||||
|
||||
@ -256,7 +256,7 @@ impl WalletSubcommand for TokenProgramAgnosticSubcommand {
|
||||
anyhow::bail!("Provide only one of --to or --to-label")
|
||||
}
|
||||
};
|
||||
let to_identifier = to_identifier.unwrap_or(rand::random());
|
||||
let to_identifier = to_identifier.unwrap_or_else(rand::random);
|
||||
let underlying_subcommand = match (to, to_npk, to_vpk) {
|
||||
(None, None, None) => {
|
||||
anyhow::bail!(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user