@@ -328,7 +328,7 @@ impl App {
328328 pub fn update ( & mut self ) -> Result < ( ) > {
329329 log:: trace!( "update" ) ;
330330
331- self . commit . update ( ) ? ;
331+ self . commit . update ( ) ;
332332 self . status_tab . update ( ) ?;
333333 self . revlog . update ( ) ?;
334334 self . files_tab . update ( ) ?;
@@ -349,7 +349,7 @@ impl App {
349349
350350 self . status_tab . update_git ( ev) ?;
351351 self . stashing_tab . update_git ( ev) ?;
352- self . files_tab . update_git ( ev) ? ;
352+ self . files_tab . update_git ( ev) ;
353353 self . revlog . update_git ( ev) ?;
354354 self . blame_file_popup . update_git ( ev) ?;
355355 self . inspect_commit_popup . update_git ( ev) ?;
@@ -482,15 +482,15 @@ impl App {
482482
483483 fn switch_tab ( & mut self , k : KeyEvent ) -> Result < ( ) > {
484484 if k == self . key_config . tab_status {
485- self . set_tab ( 0 ) ?
485+ self . set_tab ( 0 ) ?;
486486 } else if k == self . key_config . tab_log {
487- self . set_tab ( 1 ) ?
487+ self . set_tab ( 1 ) ?;
488488 } else if k == self . key_config . tab_files {
489- self . set_tab ( 2 ) ?
489+ self . set_tab ( 2 ) ?;
490490 } else if k == self . key_config . tab_stashing {
491- self . set_tab ( 3 ) ?
491+ self . set_tab ( 3 ) ?;
492492 } else if k == self . key_config . tab_stashes {
493- self . set_tab ( 4 ) ?
493+ self . set_tab ( 4 ) ?;
494494 }
495495
496496 Ok ( ( ) )
@@ -578,14 +578,15 @@ impl App {
578578 InternalEvent :: OpenCommit => self . commit . show ( ) ?,
579579 InternalEvent :: PopupStashing ( opts) => {
580580 self . stashmsg_popup . options ( opts) ;
581- self . stashmsg_popup . show ( ) ?
581+ self . stashmsg_popup . show ( ) ?;
582582 }
583583 InternalEvent :: TagCommit ( id) => {
584584 self . tag_commit_popup . open ( id) ?;
585585 }
586586 InternalEvent :: BlameFile ( path) => {
587587 self . blame_file_popup . open ( & path) ?;
588- flags. insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS )
588+ flags
589+ . insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS ) ;
589590 }
590591 InternalEvent :: CreateBranch => {
591592 self . create_branch_popup . open ( ) ?;
@@ -603,44 +604,46 @@ impl App {
603604 InternalEvent :: TabSwitch => self . set_tab ( 0 ) ?,
604605 InternalEvent :: InspectCommit ( id, tags) => {
605606 self . inspect_commit_popup . open ( id, tags) ?;
606- flags. insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS )
607+ flags
608+ . insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS ) ;
607609 }
608610 InternalEvent :: SelectCommitInRevlog ( id) => {
609611 if let Err ( error) = self . revlog . select_commit ( id) {
610612 self . queue . borrow_mut ( ) . push_back (
611613 InternalEvent :: ShowErrorMsg (
612614 error. to_string ( ) ,
613615 ) ,
614- )
616+ ) ;
615617 } else {
616618 self . tags_popup . hide ( ) ;
617- flags. insert ( NeedsUpdate :: ALL )
619+ flags. insert ( NeedsUpdate :: ALL ) ;
618620 }
619621 }
620622 InternalEvent :: OpenExternalEditor ( path) => {
621623 self . input . set_polling ( false ) ;
622624 self . external_editor_popup . show ( ) ?;
623625 self . file_to_open = path;
624- flags. insert ( NeedsUpdate :: COMMANDS )
626+ flags. insert ( NeedsUpdate :: COMMANDS ) ;
625627 }
626628 InternalEvent :: Push ( branch, force) => {
627629 self . push_popup . push ( branch, force) ?;
628- flags. insert ( NeedsUpdate :: ALL )
630+ flags. insert ( NeedsUpdate :: ALL ) ;
629631 }
630632 InternalEvent :: Pull ( branch) => {
631633 self . pull_popup . fetch ( branch) ?;
632- flags. insert ( NeedsUpdate :: ALL )
634+ flags. insert ( NeedsUpdate :: ALL ) ;
633635 }
634636 InternalEvent :: PushTags => {
635637 self . push_tags_popup . push_tags ( ) ?;
636- flags. insert ( NeedsUpdate :: ALL )
638+ flags. insert ( NeedsUpdate :: ALL ) ;
637639 }
638640 InternalEvent :: StatusLastFileMoved => {
639641 self . status_tab . last_file_moved ( ) ?;
640642 }
641643 InternalEvent :: OpenFileTree ( c) => {
642644 self . revision_files_popup . open ( c) ?;
643- flags. insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS )
645+ flags
646+ . insert ( NeedsUpdate :: ALL | NeedsUpdate :: COMMANDS ) ;
644647 }
645648 } ;
646649
@@ -676,7 +679,7 @@ impl App {
676679 {
677680 self . queue . borrow_mut ( ) . push_back (
678681 InternalEvent :: ShowErrorMsg ( e. to_string ( ) ) ,
679- )
682+ ) ;
680683 } else {
681684 flags. insert ( NeedsUpdate :: ALL ) ;
682685 self . select_branch_popup . update_branches ( ) ?;
@@ -688,7 +691,7 @@ impl App {
688691 InternalEvent :: ShowErrorMsg (
689692 error. to_string ( ) ,
690693 ) ,
691- )
694+ ) ;
692695 } else {
693696 flags. insert ( NeedsUpdate :: ALL ) ;
694697 self . tags_popup . update_tags ( ) ?;
0 commit comments