diff --git a/library/std/src/os/fd/owned.rs b/library/std/src/os/fd/owned.rs index a4c2dc8b1ed..0b3c5153871 100644 --- a/library/std/src/os/fd/owned.rs +++ b/library/std/src/os/fd/owned.rs @@ -244,7 +244,7 @@ pub trait AsFd { } #[stable(feature = "io_safety", since = "1.63.0")] -impl AsFd for &T { +impl AsFd for &T { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { T::as_fd(self) @@ -252,7 +252,7 @@ impl AsFd for &T { } #[stable(feature = "io_safety", since = "1.63.0")] -impl AsFd for &mut T { +impl AsFd for &mut T { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { T::as_fd(self) @@ -402,7 +402,7 @@ impl From for crate::net::UdpSocket { /// impl MyTrait for Box {} /// # } /// ``` -impl AsFd for crate::sync::Arc { +impl AsFd for crate::sync::Arc { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { (**self).as_fd() @@ -410,7 +410,7 @@ impl AsFd for crate::sync::Arc { } #[stable(feature = "asfd_rc", since = "1.69.0")] -impl AsFd for crate::rc::Rc { +impl AsFd for crate::rc::Rc { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { (**self).as_fd() @@ -418,7 +418,7 @@ impl AsFd for crate::rc::Rc { } #[stable(feature = "asfd_ptrs", since = "1.64.0")] -impl AsFd for Box { +impl AsFd for Box { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { (**self).as_fd() diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs index 458c3bb036d..d04804a5f3d 100644 --- a/library/std/src/os/windows/io/handle.rs +++ b/library/std/src/os/windows/io/handle.rs @@ -422,7 +422,7 @@ pub trait AsHandle { } #[stable(feature = "io_safety", since = "1.63.0")] -impl AsHandle for &T { +impl AsHandle for &T { #[inline] fn as_handle(&self) -> BorrowedHandle<'_> { T::as_handle(self) @@ -430,7 +430,7 @@ impl AsHandle for &T { } #[stable(feature = "io_safety", since = "1.63.0")] -impl AsHandle for &mut T { +impl AsHandle for &mut T { #[inline] fn as_handle(&self) -> BorrowedHandle<'_> { T::as_handle(self) @@ -450,7 +450,7 @@ impl AsHandle for &mut T { /// impl MyTrait for Box {} /// # } /// ``` -impl AsHandle for crate::sync::Arc { +impl AsHandle for crate::sync::Arc { #[inline] fn as_handle(&self) -> BorrowedHandle<'_> { (**self).as_handle() @@ -458,7 +458,7 @@ impl AsHandle for crate::sync::Arc { } #[stable(feature = "as_windows_ptrs", since = "1.71.0")] -impl AsHandle for crate::rc::Rc { +impl AsHandle for crate::rc::Rc { #[inline] fn as_handle(&self) -> BorrowedHandle<'_> { (**self).as_handle() @@ -466,7 +466,7 @@ impl AsHandle for crate::rc::Rc { } #[stable(feature = "as_windows_ptrs", since = "1.71.0")] -impl AsHandle for Box { +impl AsHandle for Box { #[inline] fn as_handle(&self) -> BorrowedHandle<'_> { (**self).as_handle()