summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-12-15 14:44:49 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-20 07:05:04 -0800
commite831466614f7657d3ae20976d5f137f2b6fb0db6 (patch)
tree62981f3b2d25a031b98d1203f1e392a1d8e5a0d3 /test
parentae8e4a4ba0a2c3300624b5ed560ac95ed6244005 (diff)
downloadnix-e831466614f7657d3ae20976d5f137f2b6fb0db6.zip
Remove 'static from variables
It's unclear why these were static in the first place.
Diffstat (limited to 'test')
-rw-r--r--test/sys/test_aio.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index 4f151458..79de3960 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -49,7 +49,7 @@ fn test_accessors() {
#[test]
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
fn test_cancel() {
- let wbuf: &'static [u8] = b"CDEF";
+ let wbuf: &[u8] = b"CDEF";
let f = tempfile().unwrap();
let mut aiocb = AioCb::from_slice( f.as_raw_fd(),
@@ -74,7 +74,7 @@ fn test_cancel() {
#[test]
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
fn test_aio_cancel_all() {
- let wbuf: &'static [u8] = b"CDEF";
+ let wbuf: &[u8] = b"CDEF";
let f = tempfile().unwrap();
let mut aiocb = AioCb::from_slice(f.as_raw_fd(),
@@ -250,7 +250,7 @@ fn test_read_into_mut_slice() {
#[should_panic(expected = "Can't read into an immutable buffer")]
#[cfg_attr(target_env = "musl", ignore)]
fn test_read_immutable_buffer() {
- let rbuf: &'static [u8] = b"CDEF";
+ let rbuf: &[u8] = b"CDEF";
let f = tempfile().unwrap();
let mut aiocb = AioCb::from_slice( f.as_raw_fd(),
2, //offset
@@ -509,7 +509,7 @@ fn test_lio_listio_signal() {
#[should_panic(expected = "Can't read into an immutable buffer")]
#[cfg_attr(target_env = "musl", ignore)]
fn test_lio_listio_read_immutable() {
- let rbuf: &'static [u8] = b"abcd";
+ let rbuf: &[u8] = b"abcd";
let f = tempfile().unwrap();