File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl ByteFormat {
6060 _ => 10 ,
6161 }
6262 }
63- pub fn total_width ( & self ) -> usize {
63+ pub fn total_width ( self ) -> usize {
6464 use ByteFormat :: * ;
6565 const THE_SPACE_BETWEEN_UNIT_AND_NUMBER : usize = 1 ;
6666
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ impl CursorDirection {
2929impl TerminalApp {
3030 pub fn cycle_focus ( & mut self ) {
3131 use FocussedPane :: * ;
32- self . window . mark_pane . as_mut ( ) . map ( |p| p. set_focus ( false ) ) ;
32+ if let Some ( p) = self . window . mark_pane . as_mut ( ) {
33+ p. set_focus ( false )
34+ } ;
3335 self . state . focussed = match (
3436 self . state . focussed ,
3537 & self . window . help_pane ,
@@ -70,7 +72,7 @@ impl TerminalApp {
7072
7173 pub fn open_that ( & mut self ) {
7274 if let Some ( ref idx) = self . state . selected {
73- open:: that ( path_of ( & self . traversal . tree , * idx) ) . ok ( ) ;
75+ open:: that ( path_of ( & self . traversal . tree , * idx) ) . ok ( ) ;
7476 }
7577 }
7678
You can’t perform that action at this time.
0 commit comments