diff --git a/src/util_file.rs b/src/util_file.rs index 6a1cad6..60c228c 100644 --- a/src/util_file.rs +++ b/src/util_file.rs @@ -83,7 +83,7 @@ pub fn find_parents_exists_file(file: &str) -> Option { Err(_) => None, Ok(mut path) => loop { loop_count += 1; - if loop_count > 100 { panic!("Loop count more than 100!"); } + if loop_count > 1000 { panic!("Loop count more than 1000!"); } if path.join(file).is_file() { return Some(path); } @@ -100,7 +100,7 @@ pub fn find_parents_exists_dir(dir: &str) -> Option { Err(_) => None, Ok(mut path) => loop { loop_count += 1; - if loop_count > 100 { panic!("Loop count more than 100!"); } + if loop_count > 1000 { panic!("Loop count more than 1000!"); } if path.join(dir).is_dir() { return Some(path); }