diff --git a/crates/ruff_cli/src/printer.rs b/crates/ruff_cli/src/printer.rs index c3a1716b0d84d0..c66df9b852e7d3 100644 --- a/crates/ruff_cli/src/printer.rs +++ b/crates/ruff_cli/src/printer.rs @@ -484,7 +484,7 @@ fn print_fix_summary(writer: &mut dyn Write, fixed: &FxHashMap } /// Build the displayed fix status message depending on the types of the remaining fixes. -fn display_violations<'a>(safe_remaining: i32, unsafe_remaining: i32) -> String { +fn display_violations(safe_remaining: i32, unsafe_remaining: i32) -> String { let prefix = format!("[{}]", "*".cyan()); let mut fix_status = prefix; @@ -506,5 +506,5 @@ fn display_violations<'a>(safe_remaining: i32, unsafe_remaining: i32) -> String ); } - fix_status.to_owned() + fix_status }