mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-09 05:38:28 +08:00
format use rustfmt nightly
This commit is contained in:
@@ -52,17 +52,8 @@ fn store_path_to_tree(path_entries: &Vec<PathBuf>, current_root: PathBuf) -> Tre
|
||||
continue;
|
||||
}
|
||||
// 拿到下一级别目录
|
||||
let process_path = path
|
||||
.components()
|
||||
.nth(0)
|
||||
.unwrap()
|
||||
.as_os_str()
|
||||
.to_str()
|
||||
.unwrap();
|
||||
if processed_path
|
||||
.insert(process_path.to_string(), true)
|
||||
.is_some()
|
||||
{
|
||||
let process_path = path.components().nth(0).unwrap().as_os_str().to_str().unwrap();
|
||||
if processed_path.insert(process_path.to_string(), true).is_some() {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user