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/cached_sheet.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'legacy_data/src/data/local/cached_sheet.rs') diff --git a/legacy_data/src/data/local/cached_sheet.rs b/legacy_data/src/data/local/cached_sheet.rs index 46b390f..e67861b 100644 --- a/legacy_data/src/data/local/cached_sheet.rs +++ b/legacy_data/src/data/local/cached_sheet.rs @@ -1,7 +1,10 @@ -use std::{io::Error, path::PathBuf}; +use std::{ + io::{Error, ErrorKind}, + path::PathBuf, +}; use cfg_file::config::ConfigFile; -use string_proc::{format_path::format_path, snake_case}; +use just_fmt::{fmt_path::fmt_path, snake_case}; use tokio::fs; use crate::{ @@ -85,7 +88,10 @@ impl CachedSheet { && let Some(file_name) = path.file_name().and_then(|n| n.to_str()) && file_name.ends_with(CLIENT_SUFFIX_CACHED_SHEET_FILE) { - sheet_paths.push(format_path(workspace_path.join(path))?); + sheet_paths + .push(fmt_path(workspace_path.join(path)).map_err(|e| { + std::io::Error::new(ErrorKind::InvalidInput, e.to_string()) + })?); } } -- cgit