File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use crate::{
13
13
util:: path_exists,
14
14
} ;
15
15
16
- #[ derive( serde:: Serialize , Debug ) ]
16
+ #[ derive( serde:: Serialize , Clone , Copy , Debug ) ]
17
17
pub enum InstallStatus {
18
18
Bundled ,
19
19
Manual ,
@@ -140,7 +140,7 @@ pub fn get_navigation_data_install_status(task: Rc<RefCell<Task>>) {
140
140
None => None ,
141
141
} ;
142
142
143
- let status = NavigationDataStatus {
143
+ let navigation_data_status = NavigationDataStatus {
144
144
status,
145
145
installed_format : match & installed_cycle_info {
146
146
Some ( installed_cycle_info) => Some ( installed_cycle_info. format . clone ( ) ) ,
@@ -166,15 +166,13 @@ pub fn get_navigation_data_install_status(task: Rc<RefCell<Task>>) {
166
166
latest_cycle : response_struct. cycle ,
167
167
} ;
168
168
169
- let status_as_value = match serde_json:: to_value ( & status ) {
169
+ let status_as_value = match serde_json:: to_value ( & navigation_data_status ) {
170
170
Ok ( status_as_value) => status_as_value,
171
171
Err ( e) => {
172
172
task. borrow_mut ( ) . status = TaskStatus :: Failure ( e. to_string ( ) ) ;
173
173
return ;
174
174
} ,
175
175
} ;
176
176
177
- println ! ( "Status: {:#?}" , status) ;
178
-
179
177
task. borrow_mut ( ) . status = TaskStatus :: Success ( Some ( status_as_value) ) ;
180
178
}
You can’t perform that action at this time.
0 commit comments