Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse committed Jul 31, 2023
1 parent 31b446d commit b73420b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_cli/src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ fn print_fix_summary(writer: &mut dyn Write, fixed: &FxHashMap<String, FixTable>
}

/// 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;

Expand All @@ -506,5 +506,5 @@ fn display_violations<'a>(safe_remaining: i32, unsafe_remaining: i32) -> String
);
}

fix_status.to_owned()
fix_status
}

0 comments on commit b73420b

Please sign in to comment.