Skip to content

Commit

Permalink
fix(ssg): 🐛 removed clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Nov 5, 2023
1 parent 1c187f8 commit abe2d36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub fn compile(
})
.collect();

global_tags_data.entry(tag.clone()).or_insert_with(Vec::new).extend(page_info);
global_tags_data.entry(tag.clone()).or_default().extend(page_info);
}

// Generate a TxtData structure, filling it with values extracted from the metadata.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn create_manifest_data(metadata: &HashMap<String, String>) -> ManifestData
purpose: Some("any maskable".to_string()),
}
])
.unwrap_or_else(Vec::new),
.unwrap_or_default(),
orientation: "portrait-primary".to_string(),
scope: "/".to_string(),
theme_color: macro_metadata_option!(metadata, "theme-color"),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn generate_tags(file: &FileData, metadata: &HashMap<String, String>) -> Has


// Insert or update the entry in keywords_data_map.
keywords_data_map.entry(tag.to_string()).or_insert_with(Vec::new).push(tags_data);
keywords_data_map.entry(tag.to_string()).or_default().push(tags_data);
}
}
keywords_data_map
Expand Down

0 comments on commit abe2d36

Please sign in to comment.