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];