File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ impl<'a> MaybeUninitSlice<'a> {
474
474
}
475
475
}
476
476
477
- #[ allow( unused_unsafe ) ] // TODO: replace with `unsafe_op_in_unsafe_fn` once stable.
477
+ #[ allow( unsafe_op_in_unsafe_fn ) ]
478
478
pub ( crate ) fn unix_sockaddr ( path : & Path ) -> io:: Result < SockAddr > {
479
479
// SAFETY: a `sockaddr_storage` of all zeros is valid.
480
480
let mut storage = unsafe { mem:: zeroed :: < sockaddr_storage > ( ) } ;
@@ -529,7 +529,7 @@ impl SockAddr {
529
529
///
530
530
/// This function can never fail. In a future version of this library it will be made
531
531
/// infallible.
532
- #[ allow( unused_unsafe ) ] // TODO: replace with `unsafe_op_in_unsafe_fn` once stable.
532
+ #[ allow( unsafe_op_in_unsafe_fn ) ]
533
533
#[ cfg( all( feature = "all" , any( target_os = "android" , target_os = "linux" ) ) ) ]
534
534
#[ cfg_attr(
535
535
docsrs,
Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ pub(crate) fn to_mreqn(
776
776
}
777
777
}
778
778
779
- #[ allow( unused_unsafe ) ] // TODO: replace with `unsafe_op_in_unsafe_fn` once stable.
779
+ #[ allow( unsafe_op_in_unsafe_fn ) ]
780
780
pub ( crate ) fn unix_sockaddr ( path : & Path ) -> io:: Result < SockAddr > {
781
781
// SAFETY: a `sockaddr_storage` of all zeros is valid.
782
782
let mut storage = unsafe { mem:: zeroed :: < sockaddr_storage > ( ) } ;
You can’t perform that action at this time.
0 commit comments