File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ fn test_aio_suspend() {
150
150
151
151
let mut rcb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
152
152
8 , //offset
153
- rbuf . clone ( ) ,
153
+ Rc :: clone ( & rbuf ) ,
154
154
0 , //priority
155
155
SigevNotify :: SigevNone ,
156
156
LioOpcode :: LIO_READ ) ;
@@ -184,7 +184,7 @@ fn test_read() {
184
184
{
185
185
let mut aiocb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
186
186
2 , //offset
187
- rbuf . clone ( ) ,
187
+ Rc :: clone ( & rbuf ) ,
188
188
0 , //priority
189
189
SigevNotify :: SigevNone ,
190
190
LioOpcode :: LIO_NOP ) ;
@@ -211,7 +211,7 @@ fn test_read_error() {
211
211
f. write_all ( INITIAL ) . unwrap ( ) ;
212
212
let mut aiocb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
213
213
-1 , //an invalid offset
214
- rbuf . clone ( ) ,
214
+ Rc :: clone ( & rbuf ) ,
215
215
0 , //priority
216
216
SigevNotify :: SigevNone ,
217
217
LioOpcode :: LIO_NOP ) ;
@@ -383,7 +383,7 @@ fn test_lio_listio_wait() {
383
383
384
384
let mut rcb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
385
385
8 , //offset
386
- rbuf . clone ( ) ,
386
+ Rc :: clone ( & rbuf ) ,
387
387
0 , //priority
388
388
SigevNotify :: SigevNone ,
389
389
LioOpcode :: LIO_READ ) ;
@@ -426,7 +426,7 @@ fn test_lio_listio_nowait() {
426
426
427
427
let mut rcb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
428
428
8 , //offset
429
- rbuf . clone ( ) ,
429
+ Rc :: clone ( & rbuf ) ,
430
430
0 , //priority
431
431
SigevNotify :: SigevNone ,
432
432
LioOpcode :: LIO_READ ) ;
@@ -479,7 +479,7 @@ fn test_lio_listio_signal() {
479
479
480
480
let mut rcb = AioCb :: from_boxed_slice ( f. as_raw_fd ( ) ,
481
481
8 , //offset
482
- rbuf . clone ( ) ,
482
+ Rc :: clone ( & rbuf ) ,
483
483
0 , //priority
484
484
SigevNotify :: SigevNone ,
485
485
LioOpcode :: LIO_READ ) ;
You can’t perform that action at this time.
0 commit comments