From 6500c364b3d0fc3effccc56f5fa23613af7cad4d Mon Sep 17 00:00:00 2001 From: Evan Rittenhouse Date: Thu, 13 Jul 2023 12:46:43 -0500 Subject: [PATCH] Clippy --- crates/ruff_cli/src/printer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }