Skip to content

Commit cdd73bc

Browse files
committed
Fix windows build
1 parent b41a6ca commit cdd73bc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/data/fs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::{
44
ffi::OsStr,
55
fs::{DirEntry, File},
66
io::{self, ErrorKind},
7-
os::unix::prelude::OsStrExt,
87
path::{Component, Path, PathBuf},
98
};
109

@@ -207,7 +206,7 @@ impl Loader {
207206
_ => None,
208207
} {
209208
let rel_path = rel_parent.join(&name);
210-
let crc = calculate_crc(rel_path.as_os_str().as_bytes());
209+
let crc = calculate_crc(rel_path.to_string_lossy().as_bytes());
211210
self.entries.insert(
212211
crc,
213212
ServerNode {

0 commit comments

Comments
 (0)