diff --git a/cli/src/argparse.rs b/cli/src/argparse.rs index ccfd657..6a22038 100644 --- a/cli/src/argparse.rs +++ b/cli/src/argparse.rs @@ -164,21 +164,21 @@ pub fn parse_args() -> clap::ArgMatches { .arg( Arg::new("data-fetch") .long("data-fetch") - .visible_aliases(&["fetch", "pull"]) + .visible_aliases(["fetch", "pull"]) .action(ArgAction::SetTrue) .help("Sync data from the ledger"), ) .arg( Arg::new("data-push-authorize") .long("data-push-authorize") - .visible_aliases(&["push-authorize", "push-auth"]) + .visible_aliases(["push-authorize", "push-auth"]) .help("Authorize push to the Decent Cloud Ledger") .action(ArgAction::SetTrue), ) .arg( Arg::new("data-push") .long("data-push") - .visible_aliases(&["push"]) + .visible_aliases(["push"]) .help("Push the ledger entries to the Decent Cloud Ledger") .action(ArgAction::SetTrue) ) diff --git a/common/src/account_transfers.rs b/common/src/account_transfers.rs index a8ed390..f5b6fcc 100644 --- a/common/src/account_transfers.rs +++ b/common/src/account_transfers.rs @@ -458,7 +458,7 @@ impl FundsTransfer { pub fn to_tx_id(&self) -> [u8; 32] { let mut hasher = Sha256::new(); - hasher.update(&self.to_bytes().unwrap()); + hasher.update(self.to_bytes().unwrap()); hasher.finalize().into() } } diff --git a/common/src/ledger_cursor.rs b/common/src/ledger_cursor.rs index 53fd398..aed4b41 100644 --- a/common/src/ledger_cursor.rs +++ b/common/src/ledger_cursor.rs @@ -192,7 +192,7 @@ pub fn cursor_from_data( let loc_next_write_position = loc_next_write_position.min(loc_storage_bytes); // Start - end position ==> size - // size is ideally equal to FETCH_SIZE_BYTES_DEFAULT, but we may not have enough data in the persistent storage + // size is ideally equal to FETCH_SIZE_BYTES_DEFAULT, but there may not be enough data in the persistent storage let response_end_position = (response_start_position + crate::FETCH_SIZE_BYTES_DEFAULT).min(loc_next_write_position);