Gracefully handle lint panics (#3509)

This commit is contained in:
Micha Reiser 2023-03-19 17:08:38 +01:00 committed by GitHub
parent f06dff8af8
commit 9ac9a1c69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 93 additions and 10 deletions

View file

@ -18,6 +18,7 @@ pub mod args;
mod cache;
mod commands;
mod diagnostics;
mod panic;
mod printer;
mod resolve;
@ -46,7 +47,6 @@ pub fn run(
log_level_args,
}: Args,
) -> Result<ExitStatus> {
#[cfg(not(debug_assertions))]
{
use colored::Colorize;