-pub fn generate(static_directory: &PathBuf, template_directory: &PathBuf, output_directory: &PathBuf, posts: &Vec<Post>) -> Result<()> {
+pub fn generate(
+ static_directory: &Path,
+ template_directory: &Path,
+ output_directory: &Path,
+ posts: &[Post],
+) -> Result<()> {