Skip to content

Commit

Permalink
fix: warnings due to lifetime elisions
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Oct 18, 2024
1 parent dc047ac commit c490133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/modules/dotnet/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ impl<'a> Dotnet<'a> {
/// ECMA-335 Section II.22.26.
fn parse_method_def_row(
&self,
) -> impl FnMut(&'a [u8]) -> IResult<&'a [u8], MethodDef> + '_ {
) -> impl FnMut(&'a [u8]) -> IResult<&'a [u8], MethodDef<'a>> + '_ {
map(
tuple((
// rva
Expand Down
4 changes: 2 additions & 2 deletions lib/src/modules/pe/asn1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ pub struct SignerInfo<'a> {
}

impl<'a> SignerInfo<'a> {
pub fn parse(input: &'a [u8]) -> BerResult<Self> {
pub fn parse(input: &'a [u8]) -> BerResult<'a, Self> {
parse_ber_sequence_defined_g(|input: &[u8], _| {
Self::parse_inner(input)
})(input)
}

pub fn parse_inner(input: &'a [u8]) -> BerResult<Self> {
pub fn parse_inner(input: &'a [u8]) -> BerResult<'a, Self> {
let (remainder, version) = parse_ber_integer(input)?;

let (remainder, (issuer, serial_number)) =
Expand Down

0 comments on commit c490133

Please sign in to comment.