Skip to content

Commit 210d83c

Browse files
committed
remove unnecessary as_ref
1 parent b537795 commit 210d83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff/src/printer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl Printer {
362362
writer,
363363
"{:>count_width$}\t{:<code_width$}\t{}{}",
364364
statistic.count.to_string().bold(),
365-
statistic.code.as_ref().unwrap_or_default().red().bold(),
365+
statistic.code.unwrap_or_default().red().bold(),
366366
if any_fixable {
367367
if statistic.fixable {
368368
&fixable

0 commit comments

Comments
 (0)