Skip to content

Commit bfc877a

Browse files
messenseThomas Bracht Laumann Jespersen
authored and
Thomas Bracht Laumann Jespersen
committed
Use winapi 0.3
1 parent 6d589c5 commit bfc877a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ serde_derive = "1.0"
2828
libc = "0.2"
2929

3030
[target."cfg(windows)".dependencies]
31-
miow = "0.2"
32-
winapi = "0.2"
31+
miow = "0.3"
32+
winapi = { version = "0.3", features = ["winerror"] }
3333

3434
[features]
3535
tmp = ["tempdir"]

src/read2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ mod imp {
115115
use self::miow::iocp::{CompletionPort, CompletionStatus};
116116
use self::miow::pipe::NamedPipe;
117117
use self::miow::Overlapped;
118-
use self::winapi::ERROR_BROKEN_PIPE;
118+
use self::winapi::shared::winerror::ERROR_BROKEN_PIPE;
119119

120120
struct Pipe<'a> {
121121
dst: &'a mut Vec<u8>,

0 commit comments

Comments
 (0)