mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-01 18:00:24 +08:00
使用路径常量
This commit is contained in:
1
git-rs
Submodule
1
git-rs
Submodule
Submodule git-rs added at 5f3bb36574
@@ -31,7 +31,7 @@ pub fn get_storage_path() -> Result<PathBuf, std::io::Error> {
|
||||
let mut current_dir = std::env::current_dir()?;
|
||||
loop {
|
||||
let mut git_path = current_dir.clone();
|
||||
git_path.push(".mit");
|
||||
git_path.push(ROOT_DIR);
|
||||
if git_path.exists() {
|
||||
return Ok(git_path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user