diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-25 15:24:18 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-25 15:24:18 +0800 |
| commit | fcbd18c4b7d90388a9a2b9e28555d2526727958c (patch) | |
| tree | 0de680895d6a162a99356d6e4d733942a339275e /legacy_data/src/data/local.rs | |
| parent | 8b96e8171c4e9d6516fd63d37cbe613bd5927a04 (diff) | |
Replace string_proc with just_fmt as external dependency
Diffstat (limited to 'legacy_data/src/data/local.rs')
| -rw-r--r-- | legacy_data/src/data/local.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/legacy_data/src/data/local.rs b/legacy_data/src/data/local.rs index d4115c6..8423168 100644 --- a/legacy_data/src/data/local.rs +++ b/legacy_data/src/data/local.rs @@ -1,12 +1,13 @@ use std::{ collections::HashMap, env::current_dir, + io::ErrorKind, path::{Path, PathBuf}, sync::Arc, }; use cfg_file::config::ConfigFile; -use string_proc::format_path::format_path; +use just_fmt::fmt_path::fmt_path; use tokio::{fs, sync::Mutex}; use vcs_docs::docs::READMES_LOCAL_WORKSPACE_TODOLIST; @@ -176,7 +177,9 @@ impl LocalWorkspace { && let Some(extension) = path.extension() && extension == suffix.trim_start_matches('.') { - let formatted_path = format_path(path)?; + let formatted_path = fmt_path(path).map_err(|e| { + std::io::Error::new(ErrorKind::InvalidInput, e.to_string()) + })?; paths.push(formatted_path); } } |
