File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ async fn main() {
66 use tracing:: { error, info} ;
77
88 // Parse command-line arguments.
9- let opts = crate :: args:: Args :: parse ( ) ;
9+ let args = crate :: args:: Args :: parse ( ) ;
1010
1111 // If user is requesting completions, return them and exit.
12- if let Some ( shell) = opts . completions {
12+ if let Some ( shell) = args . completions {
1313 clap_complete:: generate (
1414 shell,
1515 & mut crate :: args:: Args :: command ( ) ,
@@ -21,9 +21,9 @@ async fn main() {
2121 }
2222
2323 // Setup tracing.
24- let _log_guard = toolbox:: tracing:: setup_tracing ( "rust-template" , opts . logs . as_deref ( ) ) ;
24+ let _log_guard = toolbox:: tracing:: setup_tracing ( "rust-template" , args . logs . as_deref ( ) ) ;
2525
26- // Setup Continuum standard panic handling.
26+ // Setup standard panic handling.
2727 let default_panic = std:: panic:: take_hook ( ) ;
2828 std:: panic:: set_hook ( Box :: new ( move |panic_info| {
2929 error ! ( ?panic_info, "Application panic" ) ;
You can’t perform that action at this time.
0 commit comments