mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
fix: method red
not found in release builds (#3434)
This commit is contained in:
parent
bb3bb24b59
commit
b983d5eb3f
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ pub fn run(
|
|||
) -> Result<ExitStatus> {
|
||||
#[cfg(not(debug_assertions))]
|
||||
{
|
||||
use colored::Colorize;
|
||||
|
||||
let default_panic_hook = std::panic::take_hook();
|
||||
std::panic::set_hook(Box::new(move |info| {
|
||||
#[allow(clippy::print_stderr)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue