From c1a50fbdddc5fad986f4b3b6310cc5167e68f87e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 23 Nov 2025 15:16:55 +0800 Subject: Apply clippy suggestions --- crates/utils/string_proc/src/format_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/utils/string_proc/src/format_path.rs') diff --git a/crates/utils/string_proc/src/format_path.rs b/crates/utils/string_proc/src/format_path.rs index a3493f5..152b791 100644 --- a/crates/utils/string_proc/src/format_path.rs +++ b/crates/utils/string_proc/src/format_path.rs @@ -1,4 +1,4 @@ -use std::path::PathBuf; +use std::path::{Path, PathBuf}; /// Format path str pub fn format_path_str(path: impl Into) -> Result { @@ -42,7 +42,7 @@ pub fn format_path_str(path: impl Into) -> Result PathBuf { +fn normalize_path(path: &Path) -> PathBuf { let mut components = Vec::new(); for component in path.components() { -- cgit