Calls [`main_inner`], then handles printing errors and returning the correct exit code
()
| 161 | #[tokio::main] |
| 162 | /// Calls [`main_inner`], then handles printing errors and returning the correct exit code |
| 163 | pub async fn main() -> ExitCode { |
| 164 | if let Err(e) = main_inner().await { |
| 165 | println!("Error: {e}"); |
| 166 | return ExitCode::FAILURE; |
| 167 | } |
| 168 | |
| 169 | ExitCode::SUCCESS |
| 170 | } |
| 171 | |
| 172 | /// Main CLI entrypoint |
| 173 | async fn main_inner() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…