Skip to content

Commit 64e426e

Browse files
committed
Fix AsRawHandle
1 parent eac01f1 commit 64e426e

File tree

1 file changed

+3
-3
lines changed
  • src/libstd/sys/windows/ext

1 file changed

+3
-3
lines changed

src/libstd/sys/windows/ext/io.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ impl AsRawHandle for fs::File {
7575
#[stable(feature = "asraw_stdio", since = "1.21.0")]
7676
impl AsRawHandle for io::Stdin {
7777
fn as_raw_handle(&self) -> RawHandle {
78-
unsafe { c::GetStdHandle(c::STD_INPUT_HANDLE) } as RawHandle
78+
unsafe { c::GetStdHandle(c::STD_INPUT_HANDLE) as RawHandle }
7979
}
8080
}
8181

8282
#[stable(feature = "asraw_stdio", since = "1.21.0")]
8383
impl AsRawHandle for io::Stdout {
8484
fn as_raw_handle(&self) -> RawHandle {
85-
unsafe { c::GetStdHandle(c::STD_OUTPUT_HANDLE) } as RawHandle
85+
unsafe { c::GetStdHandle(c::STD_OUTPUT_HANDLE) as RawHandle }
8686
}
8787
}
8888

8989
#[stable(feature = "asraw_stdio", since = "1.21.0")]
9090
impl AsRawHandle for io::Stderr {
9191
fn as_raw_handle(&self) -> RawHandle {
92-
unsafe { c::GetStdHandle(c::STD_ERROR_HANDLE) } as RawHandle
92+
unsafe { c::GetStdHandle(c::STD_ERROR_HANDLE) as RawHandle }
9393
}
9494
}
9595

0 commit comments

Comments
 (0)