Skip to content

Commit

Permalink
Fix a build error on Rust 1.48 on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jun 8, 2022
1 parent f5b4dea commit da056aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ impl BorrowedSocket<'_> {
/// [`INVALID_SOCKET`].
#[inline]
pub const unsafe fn borrow_raw(socket: RawSocket) -> Self {
#[cfg(panic_in_const_fn)]
debug_assert!(socket != INVALID_SOCKET as RawSocket);
Self {
socket,
Expand Down

0 comments on commit da056aa

Please sign in to comment.