@@ -85,7 +85,7 @@ impl FileDesc {
85
85
86
86
#[ cfg( target_os = "espidf" ) ]
87
87
pub fn read_vectored ( & self , bufs : & mut [ IoSliceMut < ' _ > ] ) -> io:: Result < usize > {
88
- return crate :: io:: default_read_vectored ( |b| self . read ( b) , bufs) ;
88
+ io:: default_read_vectored ( |b| self . read ( b) , bufs)
89
89
}
90
90
91
91
#[ inline]
@@ -142,7 +142,7 @@ impl FileDesc {
142
142
143
143
#[ cfg( target_os = "espidf" ) ]
144
144
pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
145
- return crate :: io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs) ;
145
+ io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs)
146
146
}
147
147
148
148
pub fn write ( & self , buf : & [ u8 ] ) -> io:: Result < usize > {
@@ -170,7 +170,7 @@ impl FileDesc {
170
170
171
171
#[ cfg( target_os = "espidf" ) ]
172
172
pub fn write_vectored ( & self , bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
173
- return crate :: io:: default_write_vectored ( |b| self . write ( b) , bufs) ;
173
+ io:: default_write_vectored ( |b| self . write ( b) , bufs)
174
174
}
175
175
176
176
#[ inline]
@@ -222,7 +222,7 @@ impl FileDesc {
222
222
223
223
#[ cfg( target_os = "espidf" ) ]
224
224
pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
225
- return crate :: io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs) ;
225
+ io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs)
226
226
}
227
227
228
228
#[ cfg( target_os = "linux" ) ]
0 commit comments