style(reddit): use Option::zip to satisfy clippy

CI runs clippy with `-D warnings` on a newer toolchain that flags
`manual_option_zip`; collapse the and_then/map pair into Option::zip.
This commit is contained in:
Valerio 2026-06-04 17:48:17 +02:00
parent f6000cba52
commit 58d274ffe9

View file

@ -422,7 +422,7 @@ fn parse_one_comment(c: ElementRef, op: &str, depth: usize) -> Option<RedditComm
let score = entry.and_then(comment_score);
let created_utc = entry
.and_then(|e| Selector::parse("time[datetime]").ok().map(|s| (e, s)))
.zip(Selector::parse("time[datetime]").ok())
.and_then(|(e, s)| e.select(&s).next())
.and_then(|t| t.value().attr("datetime"))
.map(str::to_string);