diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-15 15:37:31 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | a6b394ee4caf8e1b7d3eadf4ffc0429ea461889c (patch) | |
tree | 711d96547e77b44d3c6421132ae05916a54c65bf /test/sys | |
parent | ee75274b2ad3ccbc8005ef438accd96f6e237443 (diff) | |
download | nix-a6b394ee4caf8e1b7d3eadf4ffc0429ea461889c.zip |
Remove unnecessary mut
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/test_ioctl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_ioctl.rs b/test/sys/test_ioctl.rs index 57ca9177..9a7a4819 100644 --- a/test/sys/test_ioctl.rs +++ b/test/sys/test_ioctl.rs @@ -328,8 +328,8 @@ mod linux_ioctls { #[test] fn test_ioctl_write_buf() { let file = tempfile().unwrap(); - let mut data: [spi_ioc_transfer; 4] = unsafe { mem::uninitialized() }; - let res = unsafe { spi_ioc_message(file.as_raw_fd(), &mut data[..]) }; + let data: [spi_ioc_transfer; 4] = unsafe { mem::zeroed() }; + let res = unsafe { spi_ioc_message(file.as_raw_fd(), &data[..]) }; assert!(res == Err(Sys(ENOTTY)) || res == Err(Sys(ENOSYS))); } |