Skip to content

Commit

Permalink
Update gimli deps
Browse files Browse the repository at this point in the history
Requires a minor code tweak to account for a breaking change.
  • Loading branch information
workingjubilee committed May 28, 2024
1 parent bb54997 commit e7d8af0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 33 deletions.
49 changes: 20 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion thorin-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tracing-tree = "0.1.10"
typed-arena = "2.0.1"

[dependencies.object]
version = "0.32.0"
version = "0.36.0"
default-features = false
features = [ "archive", "read", "write", "compression" ]

Expand Down
4 changes: 2 additions & 2 deletions thorin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ tracing = "0.1.29"
hashbrown = "0.14.0"

[dependencies.gimli]
version = "0.28.0"
version = "0.30.0"
default-features = false
# `gimli/std` pulls in `fallible-iterator` which we don't use, but can't opt out of, because of
# cargo#8832.
features = [ "read", "write", "std" ]

[dependencies.object]
version = "0.32.0"
version = "0.36.0"
default-features = false
features = [ "archive", "read", "write", "compression" ]

Expand Down
5 changes: 4 additions & 1 deletion thorin/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ where
let section = index
.sections(row_id)
.map_err(|e| Error::RowNotInIndex(e, row_id))?
.find(|index_section| index_section.section == target_section_id)
.find(|index_section| {
// SectionId is a superset of IndexSectionId
Some(index_section.section.dwo_name()) == target_section_id.dwo_name()
})
.ok_or(Error::SectionNotInRow)?;
let adjusted_offset: u64 = contribution.offset.0 + *adjustment;
*adjustment += section.size as u64;
Expand Down

0 comments on commit e7d8af0

Please sign in to comment.