From fcbd18c4b7d90388a9a2b9e28555d2526727958c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 25 Feb 2026 15:24:18 +0800 Subject: Replace string_proc with just_fmt as external dependency --- legacy_data/src/data/local.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'legacy_data/src/data/local.rs') 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); } } -- cgit