summaryrefslogtreecommitdiff
path: root/legacy_data/src/data/local/cached_sheet.rs
diff options
context:
space:
mode:
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())
+ })?);
}
}