Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ pub struct RemappedFrameIter<'r, 'data> {
)>,
}

impl<'r, 'data> RemappedFrameIter<'r, 'data> {
impl<'data> RemappedFrameIter<'_, 'data> {
fn empty() -> Self {
Self { inner: None }
}
Expand All @@ -428,7 +428,7 @@ impl<'r, 'data> RemappedFrameIter<'r, 'data> {
}
}

impl<'r, 'data> Iterator for RemappedFrameIter<'r, 'data> {
impl<'data> Iterator for RemappedFrameIter<'_, 'data> {
type Item = StackFrame<'data>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion src/cache/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub struct ProguardCache<'data> {
pub(crate) string_bytes: &'data [u8],
}

impl<'data> std::fmt::Debug for ProguardCache<'data> {
impl std::fmt::Debug for ProguardCache<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("ProguardCache")
.field("version", &self.header.version)
Expand Down
2 changes: 1 addition & 1 deletion src/java.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn parse_obfuscated_bytecode_signature(signature: &str) -> Option<(Vec<&str>, &s
}
}
let ty = parameter_types.get(first_idx..last_idx + 1)?;
if ty.is_empty() || !ty.ends_with(&[';']) {
if ty.is_empty() || !ty.ends_with([';']) {
return None;
}
types.push(ty);
Expand Down
2 changes: 1 addition & 1 deletion src/mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl<'s> ProguardMapper<'s> {
members.all_mappings.iter()
};

return RemappedFrameIter::members(frame, mappings);
RemappedFrameIter::members(frame, mappings)
}

/// Remaps a throwable which is the first line of a full stacktrace.
Expand Down
6 changes: 3 additions & 3 deletions src/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct ParseError<'s> {
kind: ParseErrorKind,
}

impl<'s> ParseError<'s> {
impl ParseError<'_> {
/// The offending line that caused the error.
pub fn line(&self) -> &[u8] {
self.line
Expand Down Expand Up @@ -137,7 +137,7 @@ pub struct ProguardMapping<'s> {
source: &'s [u8],
}

impl<'s> fmt::Debug for ProguardMapping<'s> {
impl fmt::Debug for ProguardMapping<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ProguardMapping").finish()
}
Expand Down Expand Up @@ -258,7 +258,7 @@ pub struct ProguardRecordIter<'s> {
slice: &'s [u8],
}

impl<'s> fmt::Debug for ProguardRecordIter<'s> {
impl fmt::Debug for ProguardRecordIter<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ProguardRecordIter").finish()
}
Expand Down
6 changes: 3 additions & 3 deletions src/stacktrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<'s> StackTrace<'s> {
}
}

impl<'s> Display for StackTrace<'s> {
impl Display for StackTrace<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
if let Some(exception) = &self.exception {
writeln!(f, "{}", exception)?;
Expand Down Expand Up @@ -249,7 +249,7 @@ impl<'s> StackFrame<'s> {
}
}

impl<'s> Display for StackFrame<'s> {
impl Display for StackFrame<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(
f,
Expand Down Expand Up @@ -341,7 +341,7 @@ impl<'s> Throwable<'s> {
}
}

impl<'s> Display for Throwable<'s> {
impl Display for Throwable<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(f, "{}", self.class)?;

Expand Down
Loading