Skip to content

Commit

Permalink
Provide a permalink to the explanation in stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
unlimitedsola committed Dec 13, 2024
1 parent e2e0e7b commit 953107a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/windows/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ pub struct COMPort {
port_name: Option<String>,
}

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

0 comments on commit 953107a

Please sign in to comment.