diff --git a/src/main.rs b/src/main.rs index 8eade4b..084d0f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ impl + AsRef> SrcRoot { fn ensure_repo_checkout(&self, url: &Url) -> Result { let repo_path = self.as_repo_path(url); - if !repo_path.is_dir() || repo_path.read_dir()?.count() == 0 { + if !repo_path.is_dir() || repo_path.read_dir()?.next().is_none() { create_dir_all(&repo_path)?; self.clone_repo(url)?; }