Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 22, 2024
1 parent 5a52962 commit 0259c06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/fs/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,9 @@ fn get_stat(metadata: std::fs::Metadata) -> FileInfo {

fn path_from_bytes(bytes: &[u8]) -> PathBuf {
#[cfg(unix)]
let path = std::ffi::OsStr::from_bytes(path_bytes);
use std::os::unix::ffi::OsStrExt;
#[cfg(unix)]
let path = std::ffi::OsStr::from_bytes(bytes);
#[cfg(windows)]
let path = {
use std::os::windows::ffi::OsStringExt;
Expand Down

0 comments on commit 0259c06

Please sign in to comment.