Fix clippy & advisory warnings

This commit is contained in:
Luke Street
2026-01-24 17:07:25 -07:00
parent 8356fe670d
commit 46b8890159
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -298,9 +298,8 @@ pub fn display_row(
}
})?;
// Fallback for relocation that wasn't displayed
if resolved.relocation.is_some() && !displayed_relocation {
if !displayed_relocation && let Some(resolved) = resolved.relocation {
cb(DiffTextSegment::basic(" <", base_color))?;
let resolved = resolved.relocation.unwrap();
let diff_index = ins_row.arg_diff.get(arg_idx).copied().unwrap_or_default();
let color =
diff_index.get().map_or(DiffTextColor::Bright, |i| DiffTextColor::Rotating(i as u8));