Skip to content

Commit

Permalink
read/cfi: consistent order for Section and R type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Mar 14, 2024
1 parent 613a0ae commit 125c5d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/read/cfi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2030,12 +2030,16 @@ impl<T: ReaderOffset, A: UnwindContextStorage<T>> UnwindContext<T, A> {
}

/// Run the CIE's initial instructions and initialize this `UnwindContext`.
fn initialize<R: Reader<Offset = T>, Section: UnwindSection<R>>(
fn initialize<Section, R>(
&mut self,
section: &Section,
bases: &BaseAddresses,
cie: &CommonInformationEntry<R>,
) -> Result<()> {
) -> Result<()>
where
R: Reader<Offset = T>,
Section: UnwindSection<R>,
{
// Always reset because previous initialization failure may leave dirty state.
self.reset();

Expand Down

0 comments on commit 125c5d8

Please sign in to comment.