Skip to content

Commit 7d733d4

Browse files
author
Bryant Mairs
committed
Remove 'static from variables
It's unclear why these were static in the first place.
1 parent 263ed2c commit 7d733d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sys/test_aio.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn test_accessors() {
4949
#[test]
5050
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
5151
fn test_cancel() {
52-
let wbuf: &'static [u8] = b"CDEF";
52+
let wbuf: &[u8] = b"CDEF";
5353

5454
let f = tempfile().unwrap();
5555
let mut aiocb = AioCb::from_slice( f.as_raw_fd(),
@@ -74,7 +74,7 @@ fn test_cancel() {
7474
#[test]
7575
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
7676
fn test_aio_cancel_all() {
77-
let wbuf: &'static [u8] = b"CDEF";
77+
let wbuf: &[u8] = b"CDEF";
7878

7979
let f = tempfile().unwrap();
8080
let mut aiocb = AioCb::from_slice(f.as_raw_fd(),
@@ -250,7 +250,7 @@ fn test_read_into_mut_slice() {
250250
#[should_panic(expected = "Can't read into an immutable buffer")]
251251
#[cfg_attr(target_env = "musl", ignore)]
252252
fn test_read_immutable_buffer() {
253-
let rbuf: &'static [u8] = b"CDEF";
253+
let rbuf: &[u8] = b"CDEF";
254254
let f = tempfile().unwrap();
255255
let mut aiocb = AioCb::from_slice( f.as_raw_fd(),
256256
2, //offset
@@ -509,7 +509,7 @@ fn test_lio_listio_signal() {
509509
#[should_panic(expected = "Can't read into an immutable buffer")]
510510
#[cfg_attr(target_env = "musl", ignore)]
511511
fn test_lio_listio_read_immutable() {
512-
let rbuf: &'static [u8] = b"abcd";
512+
let rbuf: &[u8] = b"abcd";
513513
let f = tempfile().unwrap();
514514

515515

0 commit comments

Comments
 (0)