@@ -1856,13 +1856,13 @@ pub trait Write {
1856
1856
/// }
1857
1857
/// ```
1858
1858
#[ unstable( feature = "impl_fmt_write_for_io_write" , issue = "77733" ) ]
1859
- pub struct FmtWriteAdapter < ' a , W : Write + ?Sized > {
1859
+ pub struct FmtWriteAdapter < ' a , W : ?Sized > {
1860
1860
inner : & ' a mut W ,
1861
1861
error : Option < Error > ,
1862
1862
}
1863
1863
1864
1864
#[ unstable( feature = "impl_fmt_write_for_io_write" , issue = "77733" ) ]
1865
- impl < W : Write + ? Sized > FmtWriteAdapter < ' _ , W > {
1865
+ impl < W > FmtWriteAdapter < ' _ , W > {
1866
1866
/// Returns a reference to the last error that occurred in this adapter.
1867
1867
pub fn err ( & self ) -> & Option < Error > {
1868
1868
& self . error
@@ -1875,7 +1875,7 @@ impl<W: Write + ?Sized> FmtWriteAdapter<'_, W> {
1875
1875
}
1876
1876
1877
1877
#[ unstable( feature = "impl_fmt_write_for_io_write" , issue = "77733" ) ]
1878
- impl < W : Write + ? Sized > fmt:: Write for FmtWriteAdapter < ' _ , W > {
1878
+ impl < W : Write > fmt:: Write for FmtWriteAdapter < ' _ , W > {
1879
1879
fn write_str ( & mut self , s : & str ) -> fmt:: Result {
1880
1880
match self . inner . write_all ( s. as_bytes ( ) ) {
1881
1881
Ok ( ( ) ) => {
@@ -1891,7 +1891,7 @@ impl<W: Write + ?Sized> fmt::Write for FmtWriteAdapter<'_, W> {
1891
1891
}
1892
1892
1893
1893
#[ unstable( feature = "impl_fmt_write_for_io_write" , issue = "77733" ) ]
1894
- impl < W : Write + ? Sized > Debug for FmtWriteAdapter < ' _ , W > {
1894
+ impl < W > Debug for FmtWriteAdapter < ' _ , W > {
1895
1895
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1896
1896
let mut builder = f. debug_struct ( "FmtWriteAdapter" ) ;
1897
1897
builder. field ( "error" , & self . error ) ;
0 commit comments