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 {
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 )
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments