Skip to content

Commit

Permalink
perf(parse): next_back over last for DoubleEndedIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Jan 15, 2025
1 parent 3f22fda commit 6b1653a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn contents_of_meal(html: &ElementRef) -> Contents {
let contents = html
.select(&SELECTOR)
.filter_map(|element| element.value().attr("src"))
.filter_map(|src| src.split('/').last())
.filter_map(|src| src.split('/').next_back())
.filter_map(|filename| filename.split('.').next())
.collect::<Vec<_>>();
Contents {
Expand Down

0 comments on commit 6b1653a

Please sign in to comment.