summaryrefslogtreecommitdiff
path: root/legacy_data/src/data/local/cached_sheet.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-25 15:24:18 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-25 15:24:18 +0800
commitfcbd18c4b7d90388a9a2b9e28555d2526727958c (patch)
tree0de680895d6a162a99356d6e4d733942a339275e /legacy_data/src/data/local/cached_sheet.rs
parent8b96e8171c4e9d6516fd63d37cbe613bd5927a04 (diff)
Replace string_proc with just_fmt as external dependency
Diffstat (limited to 'legacy_data/src/data/local/cached_sheet.rs')
-rw-r--r--legacy_data/src/data/local/cached_sheet.rs12
1 files changed, 9 insertions, 3 deletions
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())
+ })?);
}
}