Skip to content

Commit 6f70f0a

Browse files
committed
Minor cleanup and fixes
1 parent c82809d commit 6f70f0a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cli/src/argparse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,21 @@ pub fn parse_args() -> clap::ArgMatches {
164164
.arg(
165165
Arg::new("data-fetch")
166166
.long("data-fetch")
167-
.visible_aliases(&["fetch", "pull"])
167+
.visible_aliases(["fetch", "pull"])
168168
.action(ArgAction::SetTrue)
169169
.help("Sync data from the ledger"),
170170
)
171171
.arg(
172172
Arg::new("data-push-authorize")
173173
.long("data-push-authorize")
174-
.visible_aliases(&["push-authorize", "push-auth"])
174+
.visible_aliases(["push-authorize", "push-auth"])
175175
.help("Authorize push to the Decent Cloud Ledger")
176176
.action(ArgAction::SetTrue),
177177
)
178178
.arg(
179179
Arg::new("data-push")
180180
.long("data-push")
181-
.visible_aliases(&["push"])
181+
.visible_aliases(["push"])
182182
.help("Push the ledger entries to the Decent Cloud Ledger")
183183
.action(ArgAction::SetTrue)
184184
)

common/src/account_transfers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl FundsTransfer {
458458

459459
pub fn to_tx_id(&self) -> [u8; 32] {
460460
let mut hasher = Sha256::new();
461-
hasher.update(&self.to_bytes().unwrap());
461+
hasher.update(self.to_bytes().unwrap());
462462
hasher.finalize().into()
463463
}
464464
}

common/src/ledger_cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub fn cursor_from_data(
192192
let loc_next_write_position = loc_next_write_position.min(loc_storage_bytes);
193193

194194
// Start - end position ==> size
195-
// size is ideally equal to FETCH_SIZE_BYTES_DEFAULT, but we may not have enough data in the persistent storage
195+
// size is ideally equal to FETCH_SIZE_BYTES_DEFAULT, but there may not be enough data in the persistent storage
196196
let response_end_position =
197197
(response_start_position + crate::FETCH_SIZE_BYTES_DEFAULT).min(loc_next_write_position);
198198

0 commit comments

Comments
 (0)