about summary refs log tree commit diff
path: root/src/libstd/sys/unix/helper_signal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/unix/helper_signal.rs')
-rw-r--r--src/libstd/sys/unix/helper_signal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/helper_signal.rs b/src/libstd/sys/unix/helper_signal.rs
index a806bea2568..ed9bd0a239f 100644
--- a/src/libstd/sys/unix/helper_signal.rs
+++ b/src/libstd/sys/unix/helper_signal.rs
@@ -21,7 +21,7 @@ pub fn new() -> (signal, signal) {
 }
 
 pub fn signal(fd: libc::c_int) {
-    FileDesc::new(fd, false).write([0]).ok().unwrap();
+    FileDesc::new(fd, false).write(&[0]).ok().unwrap();
 }
 
 pub fn close(fd: libc::c_int) {