@@ -111,9 +111,12 @@ impl<'a> AioCb<'a> {
111
111
a. aio_nbytes = 0 ;
112
112
a. aio_buf = null_mut ( ) ;
113
113
114
- let aiocb = AioCb { aiocb : a, mutable : false , in_progress : false ,
115
- keeper : Keeper :: none} ;
116
- aiocb
114
+ AioCb {
115
+ aiocb : a,
116
+ mutable : false ,
117
+ in_progress : false ,
118
+ keeper : Keeper :: none
119
+ }
117
120
}
118
121
119
122
/// Constructs a new `AioCb`.
@@ -136,9 +139,12 @@ impl<'a> AioCb<'a> {
136
139
a. aio_buf = buf. as_ptr ( ) as * mut c_void ;
137
140
a. aio_lio_opcode = opcode as libc:: c_int ;
138
141
139
- let aiocb = AioCb { aiocb : a, mutable : true , in_progress : false ,
140
- keeper : Keeper :: phantom ( PhantomData ) } ;
141
- aiocb
142
+ AioCb {
143
+ aiocb : a,
144
+ mutable : true ,
145
+ in_progress : false ,
146
+ keeper : Keeper :: phantom ( PhantomData )
147
+ }
142
148
}
143
149
144
150
/// Constructs a new `AioCb`.
@@ -164,9 +170,12 @@ impl<'a> AioCb<'a> {
164
170
a. aio_buf = buf. as_ptr ( ) as * mut c_void ;
165
171
a. aio_lio_opcode = opcode as libc:: c_int ;
166
172
167
- let aiocb = AioCb { aiocb : a, mutable : true , in_progress : false ,
168
- keeper : Keeper :: boxed ( buf) } ;
169
- aiocb
173
+ AioCb {
174
+ aiocb : a,
175
+ mutable : true ,
176
+ in_progress : false ,
177
+ keeper : Keeper :: boxed ( buf)
178
+ }
170
179
}
171
180
172
181
/// Like `from_mut_slice`, but works on constant slices rather than
@@ -195,9 +204,12 @@ impl<'a> AioCb<'a> {
195
204
assert ! ( opcode != LioOpcode :: LIO_READ , "Can't read into an immutable buffer" ) ;
196
205
a. aio_lio_opcode = opcode as libc:: c_int ;
197
206
198
- let aiocb = AioCb { aiocb : a, mutable : false , in_progress : false ,
199
- keeper : Keeper :: none} ;
200
- aiocb
207
+ AioCb {
208
+ aiocb : a,
209
+ mutable : false ,
210
+ in_progress : false ,
211
+ keeper : Keeper :: none
212
+ }
201
213
}
202
214
203
215
fn common_init ( fd : RawFd , prio : libc:: c_int ,
0 commit comments