File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ impl<T: FrameStore + StateStoreBackend> CommandExecutor<T> {
378378 println ! (
379379 "Project {} started {} ({})" ,
380380 completed_frame. frame( ) . project( ) ,
381- HumanTime :: from( completed_frame. frame( ) . start( ) . clone ( ) ) ,
381+ HumanTime :: from( * completed_frame. frame( ) . start( ) ) ,
382382 completed_frame. frame( ) . start( )
383383 ) ;
384384 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ impl<'a> Display for FrameLog<'a> {
3636 for day in days {
3737 let frames = grouped_by_day. get ( day) . unwrap ( ) ;
3838 let total_duration = frames. iter ( ) . map ( |f| f. duration ( ) ) . reduce ( |f1, f2| f1 + f2) ;
39- writeln ! ( f, "" ) ?;
4039 writeln ! (
4140 f,
4241 "{} ({}h {}min {}s)" ,
Original file line number Diff line number Diff line change 5656 at : & DateTime < Local > ,
5757 ) -> Result < FrameStopped < ' a , S > , S :: StateStoreBackendError > {
5858 let frame = Frame :: from ( self . get_ongoing ( ) ?) ;
59- let completed_frame = frame. set_end ( at . clone ( ) ) ;
59+ let completed_frame = frame. set_end ( * at ) ;
6060 self . backend . clear ( ) ?;
6161 Ok ( FrameStopped {
6262 frame : completed_frame,
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ impl StateStoreBackend for Store {
365365 return Ok ( None ) ;
366366 }
367367
368- let mut file = File :: open ( & self . config . get_state_path ( ) ) ?;
368+ let mut file = File :: open ( self . config . get_state_path ( ) ) ?;
369369 let mut contents = String :: new ( ) ;
370370 file. read_to_string ( & mut contents) ?;
371371 Ok ( match serde_json:: from_str :: < OngoingFrame > ( & contents) {
@@ -380,7 +380,7 @@ impl StateStoreBackend for Store {
380380
381381 fn store ( & self , state : & WatsupOngoingFrame ) -> Result < ( ) , Self :: StateStoreBackendError > {
382382 let ongoing_frame = OngoingFrame :: from ( state) ;
383- let mut file = File :: create ( & self . config . get_state_path ( ) ) ?;
383+ let mut file = File :: create ( self . config . get_state_path ( ) ) ?;
384384 serde_json:: to_writer ( & mut file, & ongoing_frame) ?;
385385 Ok ( ( ) )
386386 }
You can’t perform that action at this time.
0 commit comments