Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphoseer committed Oct 29, 2021
1 parent b41a6ca commit cdd73bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::{
ffi::OsStr,
fs::{DirEntry, File},
io::{self, ErrorKind},
os::unix::prelude::OsStrExt,
path::{Component, Path, PathBuf},
};

Expand Down Expand Up @@ -207,7 +206,7 @@ impl Loader {
_ => None,
} {
let rel_path = rel_parent.join(&name);
let crc = calculate_crc(rel_path.as_os_str().as_bytes());
let crc = calculate_crc(rel_path.to_string_lossy().as_bytes());
self.entries.insert(
crc,
ServerNode {
Expand Down

0 comments on commit cdd73bc

Please sign in to comment.