diff --git a/src/main.rs b/src/main.rs index e3cd885..2210e51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -228,8 +228,8 @@ async fn render( .pages .clone() .into_iter() - .filter_map(|i| match i.1.timestamp { - Some(ts) => Some((i.0, SystemTime::now().duration_since(ts).unwrap())), + .filter_map(|(path, page)| match page.timestamp { + Some(ts) => Some((path, SystemTime::now().duration_since(ts).unwrap())), None => None, }) .collect::>(); @@ -249,7 +249,7 @@ async fn render( "recently_changed", &recently_changed .into_iter() - .map(|i| (i.0, timeago.convert(i.1))) + .map(|(path, duration)| (path, timeago.convert(duration))) .collect::>(), ); context.insert(