1+ #![ deny(
2+ clippy:: missing_trait_methods,
3+ reason = "Methods should be forwarded to the underlying type"
4+ ) ]
5+
16use crate :: { BufRead , ErrorType , Read , ReadReady , Seek , Write , WriteReady } ;
27use alloc:: boxed:: Box ;
38
49#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
5- #[ deny(
6- clippy:: missing_trait_methods,
7- reason = "Methods should be forwarded to the underlying type"
8- ) ]
910impl < T : ?Sized + ErrorType > ErrorType for Box < T > {
1011 type Error = T :: Error ;
1112}
1213
1314#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
14- #[ deny(
15- clippy:: missing_trait_methods,
16- reason = "Methods should be forwarded to the underlying type"
17- ) ]
1815impl < T : ?Sized + Read > Read for Box < T > {
1916 #[ inline]
2017 fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < usize , Self :: Error > {
@@ -23,10 +20,6 @@ impl<T: ?Sized + Read> Read for Box<T> {
2320}
2421
2522#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
26- #[ deny(
27- clippy:: missing_trait_methods,
28- reason = "Methods should be forwarded to the underlying type"
29- ) ]
3023impl < T : ?Sized + BufRead > BufRead for Box < T > {
3124 fn fill_buf ( & mut self ) -> Result < & [ u8 ] , Self :: Error > {
3225 T :: fill_buf ( self )
@@ -38,10 +31,6 @@ impl<T: ?Sized + BufRead> BufRead for Box<T> {
3831}
3932
4033#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
41- #[ deny(
42- clippy:: missing_trait_methods,
43- reason = "Methods should be forwarded to the underlying type"
44- ) ]
4534impl < T : ?Sized + Write > Write for Box < T > {
4635 #[ inline]
4736 fn write ( & mut self , buf : & [ u8 ] ) -> Result < usize , Self :: Error > {
@@ -55,10 +44,6 @@ impl<T: ?Sized + Write> Write for Box<T> {
5544}
5645
5746#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
58- #[ deny(
59- clippy:: missing_trait_methods,
60- reason = "Methods should be forwarded to the underlying type"
61- ) ]
6247impl < T : ?Sized + Seek > Seek for Box < T > {
6348 #[ inline]
6449 fn seek ( & mut self , pos : crate :: SeekFrom ) -> Result < u64 , Self :: Error > {
@@ -67,10 +52,6 @@ impl<T: ?Sized + Seek> Seek for Box<T> {
6752}
6853
6954#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
70- #[ deny(
71- clippy:: missing_trait_methods,
72- reason = "Methods should be forwarded to the underlying type"
73- ) ]
7455impl < T : ?Sized + ReadReady > ReadReady for Box < T > {
7556 #[ inline]
7657 fn read_ready ( & mut self ) -> Result < bool , Self :: Error > {
@@ -79,10 +60,6 @@ impl<T: ?Sized + ReadReady> ReadReady for Box<T> {
7960}
8061
8162#[ cfg_attr( docsrs, doc( cfg( any( feature = "std" , feature = "alloc" ) ) ) ) ]
82- #[ deny(
83- clippy:: missing_trait_methods,
84- reason = "Methods should be forwarded to the underlying type"
85- ) ]
8663impl < T : ?Sized + WriteReady > WriteReady for Box < T > {
8764 #[ inline]
8865 fn write_ready ( & mut self ) -> Result < bool , Self :: Error > {
0 commit comments