about summary refs log tree commit diff
path: root/src/libstd/sys/unix/helper_signal.rs
diff options
context:
space:
mode:
authorOliver Schneider <git1984941651981@oli-obk.de>2015-03-20 08:19:13 +0100
committerOliver Schneider <git1984941651981@oli-obk.de>2015-03-20 08:19:13 +0100
commitb4a1e59146c70a12d8c4c1f85c08a2ecf9fb3d2e (patch)
tree7b986ee36f81d3566200a9acda28c20b5921e032 /src/libstd/sys/unix/helper_signal.rs
parent0084f92302b3352372bfd14ebbf083bae695d16e (diff)
downloadrust-b4a1e59146c70a12d8c4c1f85c08a2ecf9fb3d2e.tar.gz
rust-b4a1e59146c70a12d8c4c1f85c08a2ecf9fb3d2e.zip
don't use Result::ok just to be able to use unwrap/unwrap_or
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 ff29dea254f..17c8b21f8b3 100644
--- a/src/libstd/sys/unix/helper_signal.rs
+++ b/src/libstd/sys/unix/helper_signal.rs
@@ -23,7 +23,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]).unwrap();
 }
 
 pub fn close(fd: libc::c_int) {