We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da29db commit 502b630Copy full SHA for 502b630
src/tools/tidy/src/deps.rs
@@ -682,8 +682,10 @@ pub static CRATES: &[&str] = &[
682
pub fn has_missing_submodule(root: &Path, submodules: &[&str]) -> bool {
683
!CiEnv::is_ci()
684
&& submodules.iter().any(|submodule| {
685
+ let path = root.join(submodule);
686
+ !path.exists()
687
// If the directory is empty, we can consider it as an uninitialized submodule.
- read_dir(root.join(submodule)).unwrap().next().is_none()
688
+ || read_dir(path).unwrap().next().is_none()
689
})
690
}
691
0 commit comments