@@ -49,7 +49,7 @@ fn test_accessors() {
49
49
#[ test]
50
50
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
51
51
fn test_cancel ( ) {
52
- let wbuf: & ' static [ u8 ] = b"CDEF" ;
52
+ let wbuf: & [ u8 ] = b"CDEF" ;
53
53
54
54
let f = tempfile ( ) . unwrap ( ) ;
55
55
let mut aiocb = AioCb :: from_slice ( f. as_raw_fd ( ) ,
@@ -74,7 +74,7 @@ fn test_cancel() {
74
74
#[ test]
75
75
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
76
76
fn test_aio_cancel_all ( ) {
77
- let wbuf: & ' static [ u8 ] = b"CDEF" ;
77
+ let wbuf: & [ u8 ] = b"CDEF" ;
78
78
79
79
let f = tempfile ( ) . unwrap ( ) ;
80
80
let mut aiocb = AioCb :: from_slice ( f. as_raw_fd ( ) ,
@@ -250,7 +250,7 @@ fn test_read_into_mut_slice() {
250
250
#[ should_panic( expected = "Can't read into an immutable buffer" ) ]
251
251
#[ cfg_attr( target_env = "musl" , ignore) ]
252
252
fn test_read_immutable_buffer ( ) {
253
- let rbuf: & ' static [ u8 ] = b"CDEF" ;
253
+ let rbuf: & [ u8 ] = b"CDEF" ;
254
254
let f = tempfile ( ) . unwrap ( ) ;
255
255
let mut aiocb = AioCb :: from_slice ( f. as_raw_fd ( ) ,
256
256
2 , //offset
@@ -509,7 +509,7 @@ fn test_lio_listio_signal() {
509
509
#[ should_panic( expected = "Can't read into an immutable buffer" ) ]
510
510
#[ cfg_attr( target_env = "musl" , ignore) ]
511
511
fn test_lio_listio_read_immutable ( ) {
512
- let rbuf: & ' static [ u8 ] = b"abcd" ;
512
+ let rbuf: & [ u8 ] = b"abcd" ;
513
513
let f = tempfile ( ) . unwrap ( ) ;
514
514
515
515
0 commit comments