We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78575f commit 8bf7afeCopy full SHA for 8bf7afe
src/cargo/util/vcs.rs
@@ -12,7 +12,7 @@ pub fn existing_vcs_repo(path: &Path, cwd: &Path) -> bool {
12
fn in_git_repo(path: &Path, cwd: &Path) -> bool {
13
let mut first_exist_base_path = Some(path);
14
while let Some(p) = first_exist_base_path {
15
- if p.exists(){
+ if p.exists() {
16
break;
17
}
18
first_exist_base_path = p.parent();
0 commit comments