##// END OF EJS Templates
hg-core: fix some `clippy` warnings...
Antoine Cezar -
r46012:3d9f1dfc default
parent child Browse files
Show More
@@ -56,10 +56,10 b" impl<'a> FindRoot<'a> {"
56 56 };
57 57
58 58 if current_dir.join(".hg").exists() {
59 return Ok(current_dir.into());
59 return Ok(current_dir);
60 60 }
61 let mut ancestors = current_dir.ancestors();
62 while let Some(parent) = ancestors.next() {
61 let ancestors = current_dir.ancestors();
62 for parent in ancestors {
63 63 if parent.join(".hg").exists() {
64 64 return Ok(parent.into());
65 65 }
General Comments 0
You need to be logged in to leave comments. Login now