Skip to content

Commit 81dfac3

Browse files
committed
Provide a permalink to the explanation in stdlib
1 parent 6d982c1 commit 81dfac3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/windows/com.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ pub struct COMPort {
3232
port_name: Option<String>,
3333
}
3434

35-
// The Windows [`HANDLE`] type is considered safe according to the standard library.
36-
// See explanation on [`OwnedHandle`] in stdlib for more information.
37-
//
38-
// [`HANDLE`]: std::os::windows::raw::HANDLE
39-
// [`OwnedHandle`]: std::os::windows::io::OwnedHandle
35+
// The Windows `HANDLE` type is considered safe according to the standard library.
36+
// See the explanation below in stdlib for more information:
37+
// https://github.com/rust-lang/rust/blob/f4f0fafd0c7849e162eddbc69fa5fe82dbec28c7/library/std/src/os/windows/io/handle.rs#L111-L115
4038
//
4139
// In the future we might want to consider using `OwnedHandle` instead of `HANDLE` directly.
4240
// At the time of writing, such work is blocked by this crate's MSRV (1.59.0) policy as

0 commit comments

Comments
 (0)