Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Oct 29, 2024
1 parent f510093 commit d606e6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn get_title<'a>(frontmatter: &'a Frontmatter, html: &'a str) -> String {
}
}

pub fn get_description<'a>(frontmatter: &'a Frontmatter) -> Option<String> {
pub fn get_description(frontmatter: &Frontmatter) -> Option<String> {
if let Some(description) = frontmatter.get("description") {
return Some(description.to_string());
}
Expand Down
6 changes: 3 additions & 3 deletions src/site.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ fn handle_archive_pages(
let year = date.year().to_string();
grouped_posts
.entry(year)
.or_insert_with(Vec::new)
.or_default()
.push(post);
}
}
Expand All @@ -600,8 +600,8 @@ fn handle_archive_pages(
&site_data
.site
.archives_content_title
.replace("$year", &year),
&contents,
.replace("$year", year),
contents,
site_data,
tera,
output_dir,
Expand Down

0 comments on commit d606e6d

Please sign in to comment.