@@ -60,11 +60,7 @@ pub trait FileExt {
60
60
/// written to possibly being only partially filled. This method must behave
61
61
/// equivalently to a single call to read with concatenated buffers.
62
62
#[ unstable( feature = "unix_file_vectored_at" , issue = "89517" ) ]
63
- fn read_vectored_at (
64
- & mut self ,
65
- bufs : & mut [ io:: IoSliceMut < ' _ > ] ,
66
- offset : u64 ,
67
- ) -> io:: Result < usize > {
63
+ fn read_vectored_at ( & self , bufs : & mut [ io:: IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
68
64
io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs)
69
65
}
70
66
@@ -175,7 +171,7 @@ pub trait FileExt {
175
171
/// from possibly being only partially consumed. This method must behave as
176
172
/// a call to `write_at` with the buffers concatenated would.
177
173
#[ unstable( feature = "unix_file_vectored_at" , issue = "89517" ) ]
178
- fn write_vectored_at ( & mut self , bufs : & [ io:: IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
174
+ fn write_vectored_at ( & self , bufs : & [ io:: IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
179
175
io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs)
180
176
}
181
177
@@ -242,17 +238,13 @@ impl FileExt for fs::File {
242
238
fn read_at ( & self , buf : & mut [ u8 ] , offset : u64 ) -> io:: Result < usize > {
243
239
self . as_inner ( ) . read_at ( buf, offset)
244
240
}
245
- fn read_vectored_at (
246
- & mut self ,
247
- bufs : & mut [ io:: IoSliceMut < ' _ > ] ,
248
- offset : u64 ,
249
- ) -> io:: Result < usize > {
241
+ fn read_vectored_at ( & self , bufs : & mut [ io:: IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
250
242
self . as_inner ( ) . read_vectored_at ( bufs, offset)
251
243
}
252
244
fn write_at ( & self , buf : & [ u8 ] , offset : u64 ) -> io:: Result < usize > {
253
245
self . as_inner ( ) . write_at ( buf, offset)
254
246
}
255
- fn write_vectored_at ( & mut self , bufs : & [ io:: IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
247
+ fn write_vectored_at ( & self , bufs : & [ io:: IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
256
248
self . as_inner ( ) . write_vectored_at ( bufs, offset)
257
249
}
258
250
}
0 commit comments