Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Oct 21, 2024
1 parent 7043148 commit 0295bf1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ pub fn process_file(path: &Path, site_data: &mut Data) -> Result<(), String> {
let slug = get_slug(&frontmatter, path);
let date = get_date(&frontmatter, path);

let extra = match frontmatter.get("extra") {
Some(v) => Some(v.to_owned()),
_ => None,
};
let extra = frontmatter.get("extra").map(std::borrow::ToOwned::to_owned);

let content = Content {
title,
Expand Down

0 comments on commit 0295bf1

Please sign in to comment.