Skip to content

Commit

Permalink
Merge pull request #219 from philipc/issue-218
Browse files Browse the repository at this point in the history
Allow `Context` to be `Send`
  • Loading branch information
philipc authored Jun 4, 2021
2 parents c99b09b + 375c4a1 commit 8a985ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl<R: gimli::Reader> Context<R> {
pub fn from_dwarf(sections: gimli::Dwarf<R>) -> Result<Self, Error> {
let mut dwarf = ResDwarf::parse(Arc::new(sections))?;
dwarf.sup = match dwarf.sections.sup.clone() {
Some(sup_sections) => Some(Arc::new(ResDwarf::parse(sup_sections)?)),
Some(sup_sections) => Some(Box::new(ResDwarf::parse(sup_sections)?)),
None => None,
};
Ok(Context { dwarf })
Expand Down Expand Up @@ -366,7 +366,7 @@ struct ResDwarf<R: gimli::Reader> {
unit_ranges: Vec<UnitRange>,
units: Vec<ResUnit<R>>,
sections: Arc<gimli::Dwarf<R>>,
sup: Option<Arc<ResDwarf<R>>>,
sup: Option<Box<ResDwarf<R>>>,
}

impl<R: gimli::Reader> ResDwarf<R> {
Expand Down

0 comments on commit 8a985ab

Please sign in to comment.