From 996851952ab0562a6d431e597c1319b1311b1b95 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Wed, 9 Aug 2023 14:36:54 +0100 Subject: [PATCH] Make `impl` impl take `?Sized` --- library/std/src/os/fd/owned.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/std/src/os/fd/owned.rs b/library/std/src/os/fd/owned.rs index 24f2bdcf4217c..06b3c4583bf1b 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) @@ -396,7 +396,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() @@ -404,7 +404,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() @@ -412,7 +412,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()