Skip to content

Commit

Permalink
Update to winx 0.34.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 2, 2022
1 parent ca81f83 commit ea32eb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cap-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ cap-tempfile = { path = "../cap-tempfile" }
rustix = { version = "0.36.0-rc1", features = ["fs", "process", "procfs", "termios", "time"] }

[target.'cfg(windows)'.dependencies]
winx = "0.33.0"
winapi-util = "0.1.5"
winx = "0.34.0-rc1"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.36.0"
Expand Down
2 changes: 1 addition & 1 deletion cap-primitives/src/windows/fs/file_type_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl ImplFileTypeExt {
}

// Use the open file to check for one of the exotic file types.
let file_type = winapi_util::file::typ(file)?;
let file_type = winx::winapi_util::file::typ(file)?;
if file_type.is_char() {
return Ok(FileType::ext(ImplFileTypeExt::CharacterDevice));
}
Expand Down
2 changes: 1 addition & 1 deletion cap-primitives/src/windows/fs/metadata_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl MetadataExt {

#[cfg(not(windows_by_handle))]
if volume_serial_number.is_none() || number_of_links.is_none() || file_index.is_none() {
let fileinfo = winapi_util::file::information(file)?;
let fileinfo = winx::winapi_util::file::information(file)?;
if volume_serial_number.is_none() {
let t64: u64 = fileinfo.volume_serial_number();
let t32: u32 = t64.try_into().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion cap-time-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ rustix = { version = "0.36.0-rc1", features = ["time"] }

[target.'cfg(windows)'.dependencies]
once_cell = "1.5.2"
winx = "0.33.0"
winx = "0.34.0-rc1"

0 comments on commit ea32eb4

Please sign in to comment.