Skip to content

Commit

Permalink
Fixed a module error in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kinire98 committed Jun 17, 2024
1 parent 2e33a99 commit 07f924f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ fn create_file(path: &PathBuf) -> Result<(), Error> {
if let Err(err) = fs::write(path, "") {
println!("File");
match err.kind() {
io::ErrorKind::PermissionDenied => Err(Error {
std::io::ErrorKind::PermissionDenied => Err(Error {
kind: ErrorKind::PermissionDenied,
}),
io::ErrorKind::AlreadyExists => Ok(()),
std::io::ErrorKind::AlreadyExists => Ok(()),
_ => panic!("{:?}", err),
}
} else {
Expand Down

0 comments on commit 07f924f

Please sign in to comment.