Skip to content

Commit 0259c06

Browse files
authored
fix compilation
1 parent 5a52962 commit 0259c06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/fs/src/commands.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,9 @@ fn get_stat(metadata: std::fs::Metadata) -> FileInfo {
11641164

11651165
fn path_from_bytes(bytes: &[u8]) -> PathBuf {
11661166
#[cfg(unix)]
1167-
let path = std::ffi::OsStr::from_bytes(path_bytes);
1167+
use std::os::unix::ffi::OsStrExt;
1168+
#[cfg(unix)]
1169+
let path = std::ffi::OsStr::from_bytes(bytes);
11681170
#[cfg(windows)]
11691171
let path = {
11701172
use std::os::windows::ffi::OsStringExt;

0 commit comments

Comments
 (0)