File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,11 @@ mod tty;
64
64
mod utils;
65
65
66
66
fn main ( ) -> ExitCode {
67
- let result = run ( ) ;
68
-
69
- tty:: restore_tty ( ) ;
70
-
71
- if let Err ( e) = result {
67
+ if let Err ( e) = run ( ) {
72
68
eprintln ! ( "{e}" ) ;
73
69
return ExitCode :: FAILURE ;
74
70
}
71
+
75
72
ExitCode :: SUCCESS
76
73
}
77
74
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ impl IndicatorHandle {
123
123
. transpose ( ) ?;
124
124
}
125
125
}
126
+
126
127
Ok ( ( ) )
127
128
}
128
129
}
@@ -144,7 +145,7 @@ impl<'a> Indicator<'a> {
144
145
while let Ok ( msg) = rx. recv ( ) {
145
146
if prx. recv_timeout ( PRIORITY_MAIL_TIMEOUT ) . is_ok ( ) {
146
147
indicator. update_state ( IndicatorState :: Done ) ?;
147
- break ;
148
+ return Ok ( ( ) ) ;
148
149
}
149
150
150
151
match msg {
@@ -185,6 +186,7 @@ impl<'a> Indicator<'a> {
185
186
let stdout = & mut self . stdout ;
186
187
stdout. execute ( terminal:: Clear ( ClearType :: CurrentLine ) ) ?;
187
188
stdout. execute ( cursor:: RestorePosition ) ?;
189
+ stdout. execute ( cursor:: Show ) ?;
188
190
} ,
189
191
_ => ( ) ,
190
192
}
You can’t perform that action at this time.
0 commit comments