This function doesn’t need to be public
- ID
93da18e- date
2025-08-16 22:04:27+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
8d95306- message
This function doesn't need to be public- changed files
1 file, 1 addition, 1 deletion
Changed files
src/can_be_deleted.rs (5954) → src/can_be_deleted.rs (5950)
diff --git a/src/can_be_deleted.rs b/src/can_be_deleted.rs
index 22a9c94..23e1f10 100644
--- a/src/can_be_deleted.rs
+++ b/src/can_be_deleted.rs
@@ -21,7 +21,7 @@ fn get_names_in_directory(dir: &Path) -> io::Result<HashSet<OsString>> {
/// Returns True if this path any ancestor is a `.git` folder,
/// False otherwise.
-pub fn is_in_git_folder(path: &Path) -> bool {
+fn is_in_git_folder(path: &Path) -> bool {
path.ancestors()
.any(|ancestor| ancestor.file_name().map_or(false, |name| name == ".git"))
}