From 0ce73b208e46cdea247bf244363f669757a717ff Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 24 Feb 2026 12:37:59 +0800 Subject: Replace string_proc with just_fmt in _asset crate --- systems/_asset/src/asset.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'systems/_asset/src') diff --git a/systems/_asset/src/asset.rs b/systems/_asset/src/asset.rs index cdcae3c..5cdc1c8 100644 --- a/systems/_asset/src/asset.rs +++ b/systems/_asset/src/asset.rs @@ -7,7 +7,7 @@ use std::{ }; use constants::{LOCK_FILE_PREFIX, TEMP_FILE_PREFIX}; -use string_proc::format_path::format_path; +use just_fmt::fmt_path::fmt_path; use crate::{ error::{DataApplyError, DataReadError, DataWriteError, HandleLockError, PrecheckFailed}, @@ -138,7 +138,7 @@ where let mut edit_path = self.path.clone(); edit_path.set_file_name(format!("{}{}", LOCK_FILE_PREFIX, file_name_str)); - let Ok(edit_path) = format_path(edit_path) else { + let Ok(edit_path) = fmt_path(edit_path) else { return Err(HandleLockError::ParsePathFailed); }; @@ -166,7 +166,7 @@ where let mut temp_path = self.path.clone(); temp_path.set_file_name(format!("{}{}", TEMP_FILE_PREFIX, file_name_str)); - let Ok(edit_path) = format_path(temp_path) else { + let Ok(edit_path) = fmt_path(temp_path) else { return Err(HandleLockError::ParsePathFailed); }; @@ -264,10 +264,10 @@ pub async fn apply_precheck(handle: &Handle) -> Result<(), PrecheckFailed> where D: RWData, { - let Ok(from) = format_path(&handle.temp_path) else { + let Ok(from) = fmt_path(&handle.temp_path) else { return Err(PrecheckFailed::FormatPathFailed); }; - let Ok(to) = format_path(&handle.asset_path) else { + let Ok(to) = fmt_path(&handle.asset_path) else { return Err(PrecheckFailed::FormatPathFailed); }; -- cgit