File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -164,21 +164,21 @@ pub fn parse_args() -> clap::ArgMatches {
164
164
. arg (
165
165
Arg :: new ( "data-fetch" )
166
166
. long ( "data-fetch" )
167
- . visible_aliases ( & [ "fetch" , "pull" ] )
167
+ . visible_aliases ( [ "fetch" , "pull" ] )
168
168
. action ( ArgAction :: SetTrue )
169
169
. help ( "Sync data from the ledger" ) ,
170
170
)
171
171
. arg (
172
172
Arg :: new ( "data-push-authorize" )
173
173
. long ( "data-push-authorize" )
174
- . visible_aliases ( & [ "push-authorize" , "push-auth" ] )
174
+ . visible_aliases ( [ "push-authorize" , "push-auth" ] )
175
175
. help ( "Authorize push to the Decent Cloud Ledger" )
176
176
. action ( ArgAction :: SetTrue ) ,
177
177
)
178
178
. arg (
179
179
Arg :: new ( "data-push" )
180
180
. long ( "data-push" )
181
- . visible_aliases ( & [ "push" ] )
181
+ . visible_aliases ( [ "push" ] )
182
182
. help ( "Push the ledger entries to the Decent Cloud Ledger" )
183
183
. action ( ArgAction :: SetTrue )
184
184
)
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ impl FundsTransfer {
458
458
459
459
pub fn to_tx_id ( & self ) -> [ u8 ; 32 ] {
460
460
let mut hasher = Sha256 :: new ( ) ;
461
- hasher. update ( & self . to_bytes ( ) . unwrap ( ) ) ;
461
+ hasher. update ( self . to_bytes ( ) . unwrap ( ) ) ;
462
462
hasher. finalize ( ) . into ( )
463
463
}
464
464
}
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ pub fn cursor_from_data(
192
192
let loc_next_write_position = loc_next_write_position. min ( loc_storage_bytes) ;
193
193
194
194
// 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
196
196
let response_end_position =
197
197
( response_start_position + crate :: FETCH_SIZE_BYTES_DEFAULT ) . min ( loc_next_write_position) ;
198
198
You can’t perform that action at this time.
0 commit comments