Skip to content

Commit 8a2a858

Browse files
authored
Merge branch 'main' into map-filter
2 parents 4c38f5f + 46b8890 commit 8a2a858

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ ignore = [
7777
{ id = "RUSTSEC-2025-0052", reason = "Unmaintained async-std crate is an indirect dependency" },
7878
{ id = "RUSTSEC-2025-0119", reason = "Unmaintained number_prefix crate is an indirect dependency" },
7979
{ id = "RUSTSEC-2025-0134", reason = "Unmaintained rustls-pemfile crate is an indirect dependency" },
80+
{ id = "RUSTSEC-2026-0002", reason = "Unsound advisory in lru indirect dependency" },
8081
]
8182
# If this is true, then cargo deny will use the git executable to fetch advisory database.
8283
# If this is false, then it uses a built-in git library.

objdiff-core/src/diff/display.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,8 @@ pub fn display_row(
298298
}
299299
})?;
300300
// Fallback for relocation that wasn't displayed
301-
if resolved.relocation.is_some() && !displayed_relocation {
301+
if !displayed_relocation && let Some(resolved) = resolved.relocation {
302302
cb(DiffTextSegment::basic(" <", base_color))?;
303-
let resolved = resolved.relocation.unwrap();
304303
let diff_index = ins_row.arg_diff.get(arg_idx).copied().unwrap_or_default();
305304
let color =
306305
diff_index.get().map_or(DiffTextColor::Bright, |i| DiffTextColor::Rotating(i as u8));

0 commit comments

Comments
 (0)