File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async fn main() -> Result<()> {
1111 let args = Args :: from_args ( ) ;
1212 let cli = Cli :: new ( ) ?;
1313
14- let notify_handle = thread:: spawn ( || synth:: version:: notify_new_version_message ( ) . unwrap ( ) ) ;
14+ let notify_handle = thread:: spawn ( synth:: version:: notify_new_version_message) ;
1515
1616 #[ cfg( feature = "telemetry" ) ]
1717 synth:: cli:: telemetry:: with_telemetry ( args, |args| cli. run ( args) ) . await ?;
@@ -24,8 +24,8 @@ async fn main() -> Result<()> {
2424 Ok ( ( ) )
2525}
2626
27- fn print_notify ( handle : JoinHandle < Option < String > > ) {
28- if let Some ( notify_message) = handle. join ( ) . unwrap_or_default ( ) {
27+ fn print_notify ( handle : JoinHandle < Result < Option < String > > > ) {
28+ if let Ok ( Ok ( Some ( notify_message) ) ) = handle. join ( ) {
2929 eprintln ! ( "{}" , notify_message) ;
3030 }
3131}
You can’t perform that action at this time.
0 commit comments