From 9e7e3da6e04cd37feee4f6455ef2c848e6b562e7 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 4 Sep 2025 16:49:23 +0800 Subject: [PATCH] .. --- yazi-fs/src/provider/local/casefold.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yazi-fs/src/provider/local/casefold.rs b/yazi-fs/src/provider/local/casefold.rs index 02cbbade..73c631f8 100644 --- a/yazi-fs/src/provider/local/casefold.rs +++ b/yazi-fs/src/provider/local/casefold.rs @@ -158,8 +158,7 @@ fn final_path(path: &Path) -> io::Result { }) } - let mut buf = [0u16; 512]; - match inner(&file, &mut buf)? { + match inner(&file, &mut [0u16; 512])? { Either::Left(path) => Ok(path), Either::Right(len) => { let mut buf = vec![0u16; len as usize];