Skip to content

Commit 4851067

Browse files
authored
chore: Clippy (#49)
1 parent ff576f1 commit 4851067

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cache/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ fn iterate_without_lines<'a>(
523523
}
524524

525525
fn extract_class_name(full_path: &str) -> Option<&str> {
526-
let after_last_period = full_path.split('.').last()?;
526+
let after_last_period = full_path.split('.').next_back()?;
527527
// If the class is an inner class, we need to extract the outer class name
528528
after_last_period.split('$').next()
529529
}

src/mapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'m> Iterator for RemappedFrameIter<'m> {
109109
}
110110

111111
fn extract_class_name(full_path: &str) -> Option<&str> {
112-
let after_last_period = full_path.split('.').last()?;
112+
let after_last_period = full_path.split('.').next_back()?;
113113
// If the class is an inner class, we need to extract the outer class name
114114
after_last_period.split('$').next()
115115
}

0 commit comments

Comments
 (0)