]> git.r.bdr.sh - rbdr/page/blobdiff - src/file_finder.rs
Bump version
[rbdr/page] / src / file_finder.rs
index a9b84f88d69395bb2f13e2215f13abd13476e936..a834bd99e33f6f90d178453028a8a5bb9b30f3e8 100644 (file)
@@ -17,7 +17,7 @@ fn find_files_recursively(root_path: &PathBuf, directory_path: &PathBuf) -> Vec<
             continue;
         }
         if path.is_dir() {
             continue;
         }
         if path.is_dir() {
-            result.append(&mut find_files_recursively(root_path, &path))
+            result.append(&mut find_files_recursively(root_path, &path));
         } else {
             let file_type = file_handler.identify(&path);
             result.push(File { path, file_type });
         } else {
             let file_type = file_handler.identify(&path);
             result.push(File { path, file_type });
@@ -89,9 +89,9 @@ mod tests {
                 Some("gmi") => assert_eq!(file.file_type, FileType::Gemini),
                 Some("html") => {
                     if file.path.ends_with("_layout.html") {
                 Some("gmi") => assert_eq!(file.file_type, FileType::Gemini),
                 Some("html") => {
                     if file.path.ends_with("_layout.html") {
-                        assert_eq!(file.file_type, FileType::Layout)
+                        assert_eq!(file.file_type, FileType::Layout);
                     } else {
                     } else {
-                        assert_eq!(file.file_type, FileType::File)
+                        assert_eq!(file.file_type, FileType::File);
                     }
                 }
                 _ => assert_eq!(file.file_type, FileType::File),
                     }
                 }
                 _ => assert_eq!(file.file_type, FileType::File),