mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
5d8f842d26
commit
fe1d3cd662
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ impl FromWtf8Vec for OsString {
|
|||
}
|
||||
#[cfg(windows)]
|
||||
{
|
||||
if super::valid_wtf8(wtf8) {
|
||||
if super::valid_wtf8(&wtf8) {
|
||||
Ok(unsafe { Self::from_encoded_bytes_unchecked(wtf8) })
|
||||
} else {
|
||||
Err(anyhow::anyhow!("Invalid WTF-8 sequence"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue